• 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: How to disconnect bound views temporarily
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to disconnect bound views temporarily


  • Subject: Re: How to disconnect bound views temporarily
  • From: Markus Spoettl <email@hidden>
  • Date: Tue, 17 Jun 2008 00:11:05 -0700

On Jun 15, 2008, at 8:26 AM, Andy Mroczkowski wrote:
I'm guessing that your NSArrayController is in the nib itself. One thing you could do is instantiate it programmatically and set it as an ivar of some other controller class in the nib (lets call it MyWindowController). Then bind the views to the MyWindowController.arrayController.arrangedObjects (or whatever the applicable keypath is).

When your view is hidden, you can set MyWindowContoller.arrayController to nil and it *should* just work. We've used this same pattern in our code, but we're only using the arrangeObjects and selectedObjects keypaths of NSArrayController.

I'll give this a try, thanks for the input!

Also, I haven't played with NSCollectionView, but it seems odd that it has problems if the data changes when its not visible. It sounds like a bug to me...


Yes.

Thanks again
Markus
--
__________________________________________
Markus Spoettl

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

_______________________________________________

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: 
 >How to disconnect bound views temporarily (From: Markus Spoettl <email@hidden>)
 >Re: How to disconnect bound views temporarily (From: Andy Mroczkowski <email@hidden>)

  • Prev by Date: Re: How does an instance variable in the ObjC code get connected to an interface element in the NIB file? BACK ON TRACK
  • Next by Date: NSDocument and default file names.
  • Previous by thread: Re: How to disconnect bound views temporarily
  • Next by thread: Converting to NSPersistentDocument
  • Index(es):
    • Date
    • Thread