• 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: Tiger development Panther deployment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tiger development Panther deployment


  • Subject: Re: Tiger development Panther deployment
  • From: Bob Ippolito <email@hidden>
  • Date: Sun, 29 May 2005 16:56:52 -0700


On May 29, 2005, at 4:50 PM, Bob Ippolito wrote:


On May 29, 2005, at 3:53 PM, Frédéric BLANC wrote:


I've got a simpler example to share; something that might better
illustrate my need:

When run on Tiger systems, my app now throws the following warning in Console:
<<
*** WARNING: Method setResizable in class NSTableView is deprecated on
10.4 and later. It should not be used in new applications. Use
setResizingMask: instead.







I'd naturally like to keep the setResizable() code for Panther users,
and use the new setResizingMask() one for Tiger-based systems… (And of
course, I'd like to avoid to distribute 2 apps: one for Panther, and
one for Tiger.)



I don't know about Java, but everywhere else you would typically do:

if ([obj respondsToSelector:@"setResizingMask:"]) {
    // do the new thing
} else {
    // do the old thing
}

or possibly checking at some point earlier on with this:
[NSTableView instancesRespondToSelector:@"setResizingMask:"]

Er, of course that code is wrong, the selectors should be @selector (setResizingMask:) .. I've been doing too much PyObjC, where selectors and strings are interchangeable (since they are "converted" to SEL when they cross the bridge).


-bob

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Tiger development Panther deployment (From: Frédéric BLANC <email@hidden>)
 >Re: Tiger development Panther deployment (From: Frédéric BLANC <email@hidden>)
 >Re: Tiger development Panther deployment (From: Bob Ippolito <email@hidden>)

  • Prev by Date: Re: mainbundle and frameworks
  • Next by Date: Re: mainbundle and frameworks
  • Previous by thread: Re: Tiger development Panther deployment
  • Next by thread: mainbundle and frameworks
  • Index(es):
    • Date
    • Thread