Re: NSArraycontroller, Bindings nad NSTableview
Re: NSArraycontroller, Bindings nad NSTableview
- Subject: Re: NSArraycontroller, Bindings nad NSTableview
- From: Louis Demers <email@hidden>
- Date: Thu, 17 Jul 2008 14:08:07 -0400
On 17-Jul-08, at 12:31 , mmalc crawford wrote:
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"?
control dragged from my button to the nsarraycontroller instance.
class toto
Please follow Cocoa naming conventions -- class names begin with
capital letters.
totally agreee, I usually do but i've done so much throw-away code to
isolate this issue until the little hours of the morning that a few
slipped in because of frustration. (which is always a good sign to go
to bed and attack the problem with a fresh mind).
- (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?
yes, toto.
Are there any error messages in the log?
e.g. "Cannot find object class with name Toto"
I added " -NSBindingDebugLogLevel 1" to the launch arguments of the
executable and I get no error message in the console.
mmalc
Louis Demers eng.
www.obzerv.com
_______________________________________________
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