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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to