unrecognized selector sent to instance

I am getting the error "unrecognized selector sent to instance" but I can't seem to figure out the cause. I am new to Objective-c, and this seems to be something basic, but I'm not getting it. Why is setNodes not being recognized?

Thanks in advance!

[NetBuilder setNodes:]: unrecognized selector sent to instance 0x1b3e20

NetBuilder.h

Code: #import @class Network;@class Node;@interface NetBuilder : NSObject {}-(id)init;-(void)dealloc;-(IBAction)buildNetwork;@property (retain) Network * network;@property (retain) NSMutableDictionary * nodes;@endNetBuilder.m
Code: #import "NetBuilder.h"#import "Node.h"#import "Network.h"#import "Path.h"// private methods@interface NetBuilder ()-(void)buildNodePaths:(Node *)node minI:(int)i1 maxI:(int)i2 minJ:(int)j1 maxJ:(int)j2 minK:(int)k1 maxK:(int)k2;-(int)getDeltaIndex:(int)low startIndex:(int)start maxIndex:(int)max deltaIndex:(int)delta;-(int)getIndex:(int)i andJ:(int)j andK:(int)k; -(void)assignNodes:(int)n forZ:(int)z;-(int)followPaths:(Node *)node;@end// actual implementation@implementation NetBuilder@dynamic network;@dynamic nodes;- (id)init{ if ( self = [super init] ) { [self setNodes:[[NSMutableDictionary alloc] init] ]; } NSLog(@"NetBuilder init"); return self;}
View complete forum thread


Related threads

unrecognized selector sent to instance

... :13303] *** -[NSViewAWT Window]:unrecognized selector sent to instance 0x125e50e302010-03-29 15:25:42.448 java ... :13303] *** -[NSViewAWT Window]:unrecognized selector sent to instance 0x125e50e302010-03-29 15:25:42.449 ... , 4364176694)terminate called after throwing an instance of 'NSException'Abort trap ...

unrecognized selector sent to instance

... modalForWindow: [filesTableView window] modalDelegate: self didEndSelector: @selector(openPanelDidEnd: returnCode: contextInfo:) contextInfo: ... select files in NSOpenPanel and click Open I get this error: [NSRectSet objectAtIndex:]: unrecognized selector sent to instance 0x1b9030 When line with Code ...

unrecognized selector (Hillegass chapter 8 challenge 2)

... application hangs without opening the window... 2009-07-09 13:48:24.596 RainManManual[29907:813] *** -[_NSControllerObjectProxy copyWithZone:]: unrecognized selector sent to instance 0x16c1f0 Is there more code I need to add to what is ...

unrecognized selector sent to instance XXXX 'NSInvalidArgumentException'

... years of object oriented programming experience on the major platforms. ... pressed, a runtime exception is generated: "unrecognized selector sent to instance XXXX 'NSInvalidArgumentException', ... handler function in it. Do I need to create instances of these ViewController classes? In InterfaceBuilder, ...

Objective-C book activity problem

... Cocoa Programming for Mac OS X by Aaron Hillegass and Im having trouble with one of the chapters. ... -08-01 21:19:41.160 lottery[8374:10b] *** -[NSPlaceholderString intWithFormat:]: unrecognized ... ', reason: '*** -[NSPlaceholderString intWithFormat:]: unrecognized selector sent to instance 0x107450' 2009 ...

Unrecognized selector sent to instance ERROR using UITabBarController

... 21:28:23.609 TabApplication[7510:20b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[UIViewController printSomething]: unrecognized selector sent to instance 0x529c80' I basically created a UIButton and ...

Unrecognized selector sent to instance Error

... 280.0, 260, 25)]; [infoBarButton addTarget:self action:@selector(generatePieChart:) forControlEvents:UIControlEventTouchUpInside]; [infoBarButton ... 'NSInvalidArgumentException', reason: '*** -[NSCFType generatePieChart]: unrecognized selector sent to instance 0x4d80b00'Now what's confusing me is ...

unrecognized selector sent to instance ** plz help

... : Code: 4/4/09 2:27:20 PM todo[1484] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSObject desc]: unrecognized selector sent to instance 0x5239b0'The links are all set in IB and the ...

unrecognised selector sent to instance xxx

... could anyone have a look at the code for me and point out my mistake? The error is "[NSView addButtonWithTitle:]: unrecognised selector sent to instance xxx". TestAppDelegate.h: Code: #import @interface TestAppDelegate : NSObject { NSWindow *window; NSButton ...

coredata observing changes

... my coredata program. The plan is to opensource this program, so your help won't go to waste. I have a bunch of objects, each with a bunch of keys. ... context:context]; }}@endoutput: [/code] observe *** -[NSCFString userInfo]: unrecognized selector sent to instance 0x10770 *** -[NSCFString userInfo]: ...

Hillegass TableView caseInsensitiveCompare selector error

... this error when I try to sort: [NSCFString caseInsensitiveCompare]: unrecognized selector sent to instance When I remove the caseInsensitiveCompare selector for the first column in IB the sorting works fine in the first column. To me ...

Core Data data in a popup button cell, and the case of the missing selector

... nothing - no menu with the drainboard names appears. If I try to set a quantity, I get this in stderr Code: ** -[NSCFDictionary objectAtIndex:]: unrecognized selector sent to instance 0x16563eb0. Thoughts? Some Core Data or bindings caveat I'm missing? Help!

Simple text editor code from ADC not working !

... from this link- http://developer.apple.com/mac/libra...c/uid/20001798 I did some ... to setString MyDocument window did not appear and this message in console appeared each time I tried to execute it: -[MyDocument string]: unrecognized selector sent to instance 0x215970 Can anyone suggest me where I ...

cocoa NSArray

... the second box you input the integer whose array element you are trying to see. I got the program to run, but it stops at the second input (that is, it ... -- 2008-12-06 21:06:49.106 firsttryarray[260:10b] *** -[NSTextField mySecondString]: unrecognized selector sent to instance 0x127e70 Thanks. Adam

I am completely new to Mac programming. What should know / learn / choose etc.?

I seriously want to do some Mac programming and I have really read a lot about it but still, I don't know what exactly I should start with. Which language has the brightest future, which one should I learn? I thought about Cocoa - as far as I know that's what I ...

PDFselection

... . [pdfSearchResultsView reloadData]; NSLog(@"n%@n",[[[[instance copy] pages] objectAtIndex: ... : - (void) didMatchString: (PDFSelection *) instance{ // Add page label ... . Second, when I try to use the "instance" in my program, I get "-[NSConcreteNotification pages]: unrecognized selector sent to instance ...

Core data, reacting to a change in the interface

... 003[47763:10b] *** -[_NSUndoBeginMark copyWithZone:]: unrecognized selector sent to instance 0x171380 also when i added code to make new entityTwo instances and add them to the set that carries those instances undo would work fine, but if i did that then the program would crash without ...

changing sub views in the split view

... the scrollpane wont let me change it's subview, it gives runtime errors) when the main program calls awakeFromNib it assigns one of the four custom views as ... NSSrollView Quote: *** -[NSView setContentView:]: unrecognized selector sent to instance 0x138460 NSInvalidArgumentException *** -[ ...

If I want to start mac programming, do I really need to know C first?

... 's programming in objective-c and Hillegasse's Cocoa Programming for Mac OS X. However, with no programming background (and not a math major), I ... was easy, and maybe it's not for me, but I found it difficult to absorb everything and get started on programming. I bought Kochan's book because it didn ...

NSMutableString appendWhat?

... all, I'm new to XCode and Objective-C, coming from Eclipse and programming in Java. After deciding to learn Obj-C, I thought ... : Quote: 2008-06-22 16:25:00.213 Encryption[1803:813] *** -[NSButton appendFormat:]: unrecognized selector sent to instance 0x12caf0 Thanks for any help :) Ben

Mac Programming Market

I am a developer/consultant in non-Mac technologies. Watching from afar I have always wondered what the Mac programming market was like. I love Apple hardware, and ... have the money to do custom development ) and I don't see any custom Mac apps being developed in that market. I am ...

Books for Mac Programming

... for suggestions on books to get started with mac programming.I am training using .Net though havent been into professional development though.So,No problems with ... best book to get started. By the way the goal is to become a professional mac app developer in the next 3 to 6 months time.

Beginning MAC programming

Hi I am new in MAC programming, and i want to know how to make MAC Apps (games,etc). How i can start? Buying and reading books? other things? what you recommend to me? P.S: if the books are good to start tell me the name of best books to buy

NSMutableArray error

In my AppController I have a method called 'awakeFromNib' which loads everything as the program launches. Last night I added to the ... the NSButton method I set up Quote: unrecognized selector sent to instance 0x456c80 I have not released deathList. ...