Re: Can a view know it's running in IB?
Re: Can a view know it's running in IB?
- Subject: Re: Can a view know it's running in IB?
- From: Malte Tancred <email@hidden>
- Date: Mon, 28 Jan 2002 17:59:22 +0100
Henri Lamiraux:
Easiest way to test if you are in IB or not is to test for the
existence of one of the methods of the IB NSApplication Instance. For
example
[NSApp respondsToSelector:@selector(isTestingInterface)];
-isTestingInterface is defined in IBApplicationAdditions.h
Is there no cleaner way to do accomplish the same thing another
way, like providing a stand-in object, a subclass or something?
It feels kinda' awkward putting code specific to IB in
a production class. Would be better off in a palette.
Just my gut feeling, but I might be totally off here. :-)
Cheerio,
Malte
--
Malte Tancred
Computer programmer, Oops AB, Sweden
mailto:email@hidden
http://www.oops.se/