Skip to content
This repository was archived by the owner on Mar 10, 2019. It is now read-only.

Cib support #42

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Cib support #42

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 13, 2012

I wanted to have multiline text support from within Xcode. This pull request represents some of the work done to make that happen, but there's plenty more to do for 'full' support.

To use LPMultiLineTextField from within Xcode's IB, I'm simply adding a NSTextField and changing its class to LPMultiLineTextField. Value bindings seems to work properly. I also fixed a few bugs that were introduced/revealed by simply using LPMultiLineTextView from within IB.

There are a few other things that aren't working just yet from the IB context, but this pull request represents the bulk of what I need. Hopefully others will find it useful as well.

  • cheers

With this commit, you can add an NSTextField to your xib in Xcode and
set its class to LPMultiLineTextField. Bindings for objectValue work
(only tested that LPMultiLineTextField can grab values, haven't tested
the other direction yet).

This commit also fixes an issue where scrollbars are hidden when
init'ing from a coder. Placeholder text also works from CIB settings,
though it's relying on HTML 5 placeholder attribute at the moment.

There's still a big with the font color being entirely too light when
there's no placeholder or title set in the CIB.
@ghost
Copy link
Author

ghost commented Feb 13, 2012

This also seems to address issue 9

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant