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 (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 arch...@mail-archive.com