on 4/10/08 4:30 AM, [EMAIL PROTECTED] purportedly said:

>> Here is a small screenshot of the bindings
>> 
>> http://vafer.org/pub/bindings.png
>> 
>> As the button binding is working so should the NSTextField  binding ...one
>> would think. But just to verify I've also added the awakeFromNib. As expected
>> it  also gets called.
>> 
>> Is there a way to get more information on the NIB startup?
> 
> I did get to the correct Core Data value via representedObject
> 
> - (IBAction) applyFilter:(id)sender
> {
>      NSString *expression = [[self representedObject] Expression];
> 
> ...but that still doesn't really help with the normal bindings :-(

Just to be clear, "binding" is a specific technology that has nothing to do
with outlet setting. Better to use proper terminology or suggestions may not
be correct.

Anyway, in your original post, you say:

> When the button is pressed it turns out that filterExpression (and
> therefor also the stringValue of it) is nil.

Are you certain that filterExpression is nil? Just because it's string value
is nil, doesn't mean the outlet is nil. It just means the field thinks that
it's empty. If it *isn't* nil, then make sure that the field editor has
committed changes. Remember that in the UI, when editing a text field, you
aren't editing the text field, but the field editor. Edits aren't normally
committed until either the field is exited or effected by certain binding
options (such as 'continuously updates value").

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to