![]() |
|
file's owner of xib is not what i expect - Printable Version +- iDevGames Forums (http://www.idevgames.com/forums) +-- Forum: Development Zone (/forum-3.html) +--- Forum: Game Programming Fundamentals (/forum-7.html) +--- Thread: file's owner of xib is not what i expect (/thread-9357.html) |
file's owner of xib is not what i expect - sefiroths - Sep 24, 2011 12:35 PM i'm using xcode4. i have a xib window (perhaps copyed by another one, i forgot because i have made it some times ago) named: chooseCharacter.xib i have the chooseCharacter.h and .m as view controller (i thought) i have added Code: -(IBAction)doneButtonClick;on the chooseCharacter.h but i've not seen it in interface builder actions... i have added this on HighScoreViewController.h and it now shows up... however, if i put it on HighScoreViewController.h i must put the implementation in chooseCharacter.m or i get Code: -[ChooseCharacter doneButtonClick]: unrecognized selector sent to instance 0xcc0d9b0'seems that the window is binded with a file's owner that is HighScoreViewController.h but search implementation in ChooseCharacter.m!!! how can i bind the xib to the right file? thanks RE: file's owner of xib is not what i expect - sefiroths - Sep 24, 2011 01:12 PM found it. selecting in interface builder, file's owner and clicking in identity inspector under class was HighScoreViewController, changed to chooseCharacter now it works |