• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can a view know it's running in IB?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/


  • Follow-Ups:
    • Re: Can a view know it's running in IB?
      • From: Malte Tancred <email@hidden>
  • Prev by Date: CGSAddTrackingRect?
  • Next by Date: Re: Can a view know it's running in IB?
  • Previous by thread: Re: CGSAddTrackingRect?
  • Next by thread: Re: Can a view know it's running in IB?
  • Index(es):
    • Date
    • Thread