Re: IB instantiating objects

2009-03-23 Thread Gmail
I'm sorry! The light bulb just went off as soon as I sent that last message. I'm NOT supposed to init a NEW instance, but use that instance and simply modify it, which works perfectly. Please ignore that last message, this issue is solved and thank you very much for helping. Pascal users on

Re: IB instantiating objects

2009-03-23 Thread Gmail
Great, thanks. I almost have this working but with one little problem. 1) I add the "init" method to my class 2) When init is invoked from the NIB I call objc_msgSend with the selector "init" which returns the new instance of the class (retrieved from objc_getClass) I previously registered wi

Re: IB instantiating objects

2009-03-23 Thread Ashley Clark
On Mar 23, 2009, at 10:31 PM, Gmail wrote: On Mar 24, 2009, at 10:01 AM, Ashley Clark wrote: On Mar 23, 2009, at 9:30 PM, Gmail wrote: Thanks! I think that document explains everything I need to know to take control over IB. This is more Objective-C related by maybe you have a quick tip.

Re: IB instantiating objects

2009-03-23 Thread Gmail
On Mar 24, 2009, at 10:01 AM, Ashley Clark wrote: On Mar 23, 2009, at 9:30 PM, Gmail wrote: Thanks! I think that document explains everything I need to know to take control over IB. This is more Objective-C related by maybe you have a quick tip. My first tests suggest that my method for

Re: IB instantiating objects

2009-03-23 Thread Ashley Clark
On Mar 23, 2009, at 9:30 PM, Gmail wrote: Thanks! I think that document explains everything I need to know to take control over IB. This is more Objective-C related by maybe you have a quick tip. My first tests suggest that my method for overriding is not correct because overriding "init"

Re: IB instantiating objects

2009-03-23 Thread Gmail
Thanks! I think that document explains everything I need to know to take control over IB. This is more Objective-C related by maybe you have a quick tip. My first tests suggest that my method for overriding is not correct because overriding "init" is getting invoked from all sorts of other

Re: IB instantiating objects

2009-03-23 Thread Jonathan Hess
Hey Josef - When IB instantiates an object in a NIB file that has the custom class set, it will instantiate it with either init, initWithFrame:, or initWithCoder: depending on the type of object. Here's a link tot he relevant documentation: http://developer.apple.com/documentation/Cocoa/Con

Re: IB instantiating objects

2009-03-23 Thread Gmail
NO, it supports subclassing. Do you know what method I could override (and return my instance) before the NIB is loaded so I can control it's isntance variables? I think maybe a low-level protocol like init could perhaps work. Thanks. On Mar 24, 2009, at 12:15 AM, Bill Bumgarner wrote: On

Re: IB instantiating objects

2009-03-23 Thread Bill Bumgarner
On Mar 22, 2009, at 6:26 PM, Gmail wrote: Is there anyone who is aware how this was accomplished by the other bridges or if I can force IB to not instantiate the classes, or maybe replace the instance with my own? It seems like I need a way to access the instances of those classes inside the

IB instantiating objects

2009-03-23 Thread Gmail
I'm working on developing a Pascal Objective-C bridge like RubyObjc and have run across a problem I can't seem to work around with IB. I very new to Cocoa btw, so I hope this makes sense. Maybe I'm asking in the wrong place also. ;) I have noticed that when a nib is loaded it must allocate