Re: NSArraycontroller, Bindings nad NSTableview
Re: NSArraycontroller, Bindings nad NSTableview
- Subject: Re: NSArraycontroller, Bindings nad NSTableview
- From: mmalc crawford <email@hidden>
- Date: Thu, 17 Jul 2008 09:31:54 -0700
On Jul 17, 2008, at 8:52 AM, Louis Demers wrote:
A button bound to the "add" or the "insert" method of the
NSArrayController just does nothing.
Do you mean "bound" or "connected using target action"?
class toto
Please follow Cocoa naming conventions -- class names begin with
capital letters.
- (void)add:(id)sender;
{
[super add:sender]; // Does not work
NSLog(@"count %d" , [[super content] count]);
[super addObject:[[toto alloc] init]]; // Works
NSLog(@"count %d" , [[super content] count]);
}
Any clues why the "add" method does not work ?
Have you spelled the Class Name correctly in Interface Builder?
Are there any error messages in the log?
e.g. "Cannot find object class with name Toto"
mmalc
_______________________________________________
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