• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSPredicate & Editor questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSPredicate & Editor questions (From: Dave DeLong <email@hidden>)
 >Re: NSPredicate & Editor questions (From: Peter Ammon <email@hidden>)
 >Re: NSPredicate & Editor questions (From: Dave DeLong <email@hidden>)

  • Prev by Date: UITableView updating problem
  • Next by Date: NSOutlineView vertical text alignment
  • Previous by thread: Re: NSPredicate & Editor questions
  • Next by thread: Re: NSPredicate & Editor questions
  • Index(es):
    • Date
    • Thread