• 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
KVO oddity (or am I *really* idiot ?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

KVO oddity (or am I *really* idiot ?)


  • Subject: KVO oddity (or am I *really* idiot ?)
  • From: vincent habchi <email@hidden>
  • Date: Wed, 9 Jun 2010 16:05:03 +0200

Hi there,
no latin this time, I swear! :)

Well, please tell me I am a fool: when I execute those two lines:

	NSLog(@"%@", [[NSApp delegate] appController]);
	NSLog(@"%@", [NSApp valueForKey:@"delegate.appController"]);

I get this result:

2010-06-09 15:52:57.525 PostSIG[5503:a0b] <AppController: 0x100345fa0>
2010-06-09 15:52:57.526 PostSIG[5503:a0b] [<NSApplication 0x1003264d0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key delegate.appController.

[NSApp valueForKey:@"delegate"] works all right.
appController is a synthesized readonly property of the delegate.

What did I miss?
Thanks (I cannot get rid of the impression that this question is silly)

_______________________________________________

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: KVO oddity (or am I *really* idiot ?)
      • From: Graham Cox <email@hidden>
    • Re: KVO oddity (or am I *really* idiot ?)
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: FSCopyObjectAsync hogging the thread?
  • Next by Date: Re: KVO oddity (or am I *really* idiot ?)
  • Previous by thread: Re: FSCopyObjectAsync hogging the thread?
  • Next by thread: Re: KVO oddity (or am I *really* idiot ?)
  • Index(es):
    • Date
    • Thread