• 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 ArrayController's "editable" property to object attribute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding ArrayController's "editable" property to object attribute


  • Subject: Binding ArrayController's "editable" property to object attribute
  • From: "Matthew M. Swann" <email@hidden>
  • Date: Sat, 28 May 2005 16:34:18 -0700

Hi all,

I'm creating an application which has a user interface much like iTunes or iPhoto -- it has a tableview of albums and a tableview of items in the currently selected album. There is always one Library album and any number of user-created, editable albums.

The album view is bound to an ArrayController which gets its information from a Core Data store. Each album is represented in Core Data by an Album object which contains (among other things) an attribute titled isLibraryAlbum. If this attribute is set to true, I'd like to disable editing of the album name in the tableview.

It would appear that the most straightforward way for me to accomplish this would be to bind the "editable" binding in my albums' ArrayController to the Album object's isLibraryAlbum. (I'd need to replace this attribute with its opposite, "isUserAlbum", but that's okay.) Looking at the Bindings inspector in IB, however, it appears that I can only bind "editable" to a key on the app delegate, not to a property on the ArrayController's items. Am I missing something obvious here?

Thanks in advance!

-- Matt

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Binding ArrayController's "editable" property to object attribute
      • From: Scott Anguish <email@hidden>
  • Prev by Date: 10.4.1 and shared memory
  • Next by Date: Re: Binding ArrayController's "editable" property to object attribute
  • Previous by thread: 10.4.1 and shared memory
  • Next by thread: Re: Binding ArrayController's "editable" property to object attribute
  • Index(es):
    • Date
    • Thread