• 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
Binding hidden attribute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding hidden attribute


  • Subject: Binding hidden attribute
  • From: BareFeet <email@hidden>
  • Date: Fri, 9 Oct 2009 00:18:38 +1100

Hi all,

I'm trying to hide a tab view item according to the value returned an accessor in my model.

My accessor simply returns YES or NO, as per:

- (BOOL) schemaIsHidden {
return ([type isEqualToString: @"query"] || [type isEqualToString: @"source"]);
}


In interface builder, in my document nib, I selected the view belonging to my "Schema" tab view item, set its "Hidden" attribute to:

Bind to:         My Array Controller
Controller key:  selection
Model Key Path:  schemaIsHidden

It compiles OK, but when I run it, I get an error in the log:

Cannot create attributed string from object <null> of class NSNull

What does this mean?

Do I have the correct class (BOOL) returned by my accessor?

My other bindings to this same model and controller work fine.

Thanks,
Tom
BareFeet

_______________________________________________

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: Binding "hidden" attribute
      • From: BareFeet <email@hidden>
  • Prev by Date: Re: Strange Core Data problem after upgrade
  • Next by Date: Re: [MEET] CocoaHeads-NYC tomorrow night, Thu 10/8
  • Previous by thread: Undo and two NSManagedObjectContexts
  • Next by thread: Re: Binding "hidden" attribute
  • Index(es):
    • Date
    • Thread