• 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: Boggled By Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Boggled By Bindings


  • Subject: Re: Boggled By Bindings
  • From: Steven Kramer <email@hidden>
  • Date: Mon, 4 Oct 2004 17:09:31 +0200


Op 4-okt-04 om 13:56 heeft Patrick Machielse het volgende geschreven:


I have two questions left regarding the NSArrayController

(1)

Why is is that automaticallyNotifiesObserversForKey:@"arrangedObjects"
returns NO, but I can still successfully bind to 'arrangedObjects'?


Because the array controller performs manual notification would be my guess.

(2)

Why does

+ (void)initialize
{
[[self class] setKeys:[NSArray arrayWithObject:@"arrangedObjects"]
triggerChangeNotificationsForDependentKey:@"myKey"];
}

not work, _even_ when I override

+ (BOOL)automaticallyNotifiesObserversForKey:(NSString *)key;

to return YES for 'arrangedObjects'?


Can any of you bindings-experts clarify this, or should I file a bug report?


I admit to a lack of bindings expertice ;-) I ran into the same problem and ended up setting up an observer in my subclass, as was suggested by someone else in this thread too, IIRC.

Steven

_______________________________________________
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: Boggled By Bindings
      • From: Patrick Machielse <email@hidden>
References: 
 >Re: Boggled By Bindings (From: Patrick Machielse <email@hidden>)

  • Prev by Date: Re: how to get image resolution(dpi)
  • Next by Date: Re: NSImage gets distorted when scrolled
  • Previous by thread: Re: Boggled By Bindings
  • Next by thread: Re: Boggled By Bindings
  • Index(es):
    • Date
    • Thread