• 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:50:55 -0700


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:"]

-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


  • Follow-Ups:
    • Re: Tiger development Panther deployment
      • From: Bob Ippolito <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>)

  • Prev by Date: Difficulty adding and removing objects from "nested" NSArrayControllers
  • Next by Date: Re: mainbundle and frameworks
  • Previous by thread: Re: Tiger development Panther deployment
  • Next by thread: Re: Tiger development Panther deployment
  • Index(es):
    • Date
    • Thread