Re: NSPredicate & Editor questions
Re: NSPredicate & Editor questions
- Subject: Re: NSPredicate & Editor questions
- From: Dave DeLong <email@hidden>
- Date: Wed, 12 Aug 2009 21:05:51 -0600
I figured out why it's not loading!
Apparently, when doing this in a document-based application,
readFromData:ofType:... is called *before* the nib is loaded, so
obviously my message of [predicateEditor
setObjectValue:unarchivedPredicate]; wasn't working, because
predicateEditor hadn't been loaded yet.
Once I delayed the setting of predicateEditor's objectValue to the
windowControllerDidLoadNib: method (by means of an NSPredicate
property on my NSDocument subclass), everything worked exactly as
planned!
Thanks for the tips, everyone! This will really help me with my
projects. =)
Cheers,
Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden