• 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: core data and IB outlet binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: core data and IB outlet binding


  • Subject: Re: core data and IB outlet binding
  • From: Torsten Curdt <email@hidden>
  • Date: Thu, 10 Apr 2008 12:30:01 +0200


On Apr 10, 2008, at 10:00, Torsten Curdt wrote:
Is you outlet actually connected in IB? If it is properly connected,
it
shouldn't be nil.

Yeah ...that's connected. Which is why I am so surprised it's nil.

Well, AFAIK it's not possible for an outlet to be nil, as long as the object
with the outlet is instantiated in the nib or is the file's owner.
Otherwise, the outlet will never be set.


Have you put an NSLog in the object's awakeFromNib to make sure your object
is involved in the nib and the outlet is being set?

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 :-(

cheers
--
Torsten
_______________________________________________

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


  • Follow-Ups:
    • Re: core data and IB outlet binding
      • From: Keary Suska <email@hidden>
References: 
 >Re: core data and IB outlet binding (From: Keary Suska <email@hidden>)
 >Re: core data and IB outlet binding (From: Torsten Curdt <email@hidden>)

  • Prev by Date: Re: Highlight color of a NSTableView row
  • Next by Date: NSString value mangled in NSDictionary with Garbage Collection
  • Previous by thread: Re: core data and IB outlet binding
  • Next by thread: Re: core data and IB outlet binding
  • Index(es):
    • Date
    • Thread