Re: Finding windows made in Interface Builder?
Re: Finding windows made in Interface Builder?
- Subject: Re: Finding windows made in Interface Builder?
- From: Kai-Mikael Jää-Aro <email@hidden>
- Date: Wed, 11 Jul 2007 18:21:45 +0200
I. Savant kirjoitti 2007-07-11 kello 18:08:
On 7/11/07, Kai-Mikael Jää-Aro <email@hidden>
wrote:
I have like fifty or so windows and was sort of hoping
I could just find them by an identifier.
NSWindow doesn't have an "identifier". If you really have "fifty or
so" wndows and that number is fixed (ie, not arbitrary like opening a
new generic "message" window for each viewed message in Mail), you'll
probably have to share more details about your design if you want
suggestions for a better approach. I suspect something about your
design could benefit from further consideration.
Oh, I'm sure :-)
I'm laying out a circuit design and the user can double-click on each
unit to get up an info window specific for that type of unit. So,
the window depends on the clicked-on unit and ideally I'd like to
bind the window identity to the unit, but the units are of course
created dynamically by the user. I'd rather not tie knowledge of the
info window to the layout view, but AIUI, I have to connect an
instance of some class to the window. Should I use a prototype
object that I then copy for each new unit, rather than instancing new
ones directly from the class? In that case I could have an outlet
from that prototype object to its corresponding window. It works,
but feels a bit clumsy, I think.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden