Re: get ref to instance from IB

2009-06-17 Thread Paul M
On 17/06/2009, at 12:36 PM, Andy Lee wrote: On Tuesday, June 16, 2009, at 08:10PM, Paul M l...@no-tek.com wrote: Thanks for all the good information here. It's helping a lot. My data is largely static, if it does change it all changes, so if I save references to all my wrappers, I can just

Re: get ref to instance from IB

2009-06-17 Thread Kyle Sluder
On Wed, Jun 17, 2009 at 5:44 AM, Paul Ml...@no-tek.com wrote: The UIController class is my own class which connects to all my UI elements. I added 2 IBOutlets to this class, then wired these to the 2 instances of my DataSource class, so now I have references to these instances, which is just

Re: get ref to instance from IB

2009-06-16 Thread Ken Thomases
On Jun 15, 2009, at 11:28 PM, Graham Cox wrote: On 16/06/2009, at 1:55 PM, Paul M wrote: Also: do I need to track and clean up all these wrapper instanes? I'm assuming I dont - I hope I dont otherwise it'll be a complete nightmare. You need to follow normal, standard memory management

Re: get ref to instance from IB

2009-06-16 Thread Graham Cox
On 16/06/2009, at 4:00 PM, Ken Thomases wrote: Actually, I believe a data source has stricter requirements on it than merely following the memory management rules. From

Re: get ref to instance from IB

2009-06-16 Thread Paul M
Thanks for all the good information here. It's helping a lot. My data is largely static, if it does change it all changes, so if I save references to all my wrappers, I can just dump the lot and start over if there are changes. I'll probably create them on an 'as required' basis to prevent a

Re: get ref to instance from IB

2009-06-16 Thread Andy Lee
On Tuesday, June 16, 2009, at 08:10PM, Paul M l...@no-tek.com wrote: Thanks for all the good information here. It's helping a lot. My data is largely static, if it does change it all changes, so if I save references to all my wrappers, I can just dump the lot and start over if there are

get ref to instance from IB

2009-06-15 Thread Paul M
First off, I'm new to IB and cocoa, so these questions should be taken in that context. Also, This is a port of an existing X/C++ app. The internals are tried and true, all I'm doing is adding a new UI. How do I obtain a reference to an object instanciated in IB? I have 2 outline views and 2

Re: get ref to instance from IB

2009-06-15 Thread Graham Cox
On 16/06/2009, at 1:55 PM, Paul M wrote: First off, I'm new to IB and cocoa, so these questions should be taken in that context. Also, This is a port of an existing X/C++ app. The internals are tried and true, all I'm doing is adding a new UI. How do I obtain a reference to an object

Re: get ref to instance from IB

2009-06-15 Thread Graham Cox
On 16/06/2009, at 2:28 PM, Graham Cox wrote: This seems horribly inefficient to me, I have thousands of items in my data trees. Just to say something about this also - the outline view will only ask for as many items as it needs to actually display. So it need not be inefficient unless