• 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: I think I have found a big bug in NSBrowser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I think I have found a big bug in NSBrowser


  • Subject: Re: I think I have found a big bug in NSBrowser
  • From: email@hidden
  • Date: Tue, 31 Jan 2006 12:49:06 -0800

*** NSRunLoop ignoring exception '[<NSManagedObject 0x31d350> valueForUndefinedKey:]: this class is not key value coding-compliant for the key .' that raised during posting of delayed perform with target 3c9f90 and selector 'invokeWithTarget:'

When setting arrangedObjects as the contentValue binding....

In addition to:

- (void)setObjectValue:(id)value
{
	if ([value isKindOfClass:[Node class]])
	{
		[self setImage:[value icon]];
		[self setLeaf:[value isLeaf]];
		[super setObjectValue:[[value path] lastPathComponent]];
	}
	else
		[super setObjectValue:value];
}

Also, I had to make sure to implement:

- (id)valueForUndefinedKey:(NSString *)key
{
	return self;
}

in the model object.

Otherwise I get: *** NSRunLoop ignoring exception '[<NSManagedObject 0x31d350> valueForUndefinedKey:]: this class is not key value coding- compliant for the key .' that raised during posting of delayed perform with target 3c9f90 and selector 'invokeWithTarget:'

I guess the NSTreeController sends an empty string to the model object, even if its not set as anything in the binding inspector....

Andre
email@hidden



_______________________________________________
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


References: 
 >Re: I think I have found a big bug in NSBrowser (From: Hamish Allan <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Andre <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Hamish Allan <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Andre <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Hamish Allan <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Andre <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Hamish Allan <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Andre <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Hamish Allan <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Andre <email@hidden>)

  • Prev by Date: Re: label URL
  • Next by Date: Re: Fake NSMenu-like view
  • Previous by thread: Re: I think I have found a big bug in NSBrowser
  • Next by thread: Universal Binary - AppleScript utxt problem
  • Index(es):
    • Date
    • Thread