Dynamic Typing
Dynamic Typing
- Subject: Dynamic Typing
- From: Victor Soriano <email@hidden>
- Date: Thu, 28 Mar 2002 11:37:59 -0500
Hi all,
I'm writing an application whose interface is defined in IB. It's organized
as follows:
A primary class exists which defines outlets for most of the controls in the
window.
The window contains a tab view where a custom class has been defined to
handle the outlets on each page of the tab view. These "tab view classes"
have been instantiated and the outlets from each page of the tab view
connected to it's corresponding class.
The primary class contains an id variable which I would like to dynamically
cast as one of the tab view classes each time the corresponding tab view
page is selected.
The question is: without specifically defining static outlets in the primary
class, how to I get access to the tab view class instances that are created
when the nib is loaded?
I currently have a scheme that dynamically creates the instances as I need
them, but I realized that additional instances are already being created
when the nib is loaded. I need to either use the instances created by the
nib, or dealloc them and use my existing scheme.
Any suggestions?
Thanks,
Vic
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.