• 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: Finding out OS version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding out OS version


  • Subject: Re: Finding out OS version
  • From: Tim Hewett <email@hidden>
  • Date: Mon, 9 Jun 2003 16:37:13 +0100

Nick,

Thanks for the info. I found another way around the
problem which you might find of interest. The problem
was that the method "dragPromisedFilesOfTypes:"
method doesn't exist pre-10.2. However the base class
known as "Object" has a method "respondsToSelector:"
so you can perform a test to see if some troublesome
method actually exists, i.e.

if ( [self
respondsToSelector:@selector(dragPromisedFilesOfTypes:fromRect:source:sl
ideBack:event:)] == NO ) {

fprintf( stderr, "Promised file drag-and-drop is not supported.\n" );
return;
}

So far it has only been this matter that has caused a
problem, so this is probably the simplest way around
it for now. Thanks for the info though.

Regards,

Tim.

On Monday, Jun 9, 2003, at 15:23 Europe/London, Nick Zitzmann wrote:

>
> On Monday, June 9, 2003, at 03:45 AM, Tim Hewett wrote:
>
>> Anyone else hit this problem? Is there some method hidden
>> away somewhere which gives the OS version in a format which
>> software can use for decision making?
>
> I wrote an article about this almost a year ago, and it's still valid
> today: <http://cocoadevcentral.com/articles/000067.php>
>
> Nick Zitzmann
> AIM/iChat: dragonsdontsleep
> Check out my software page: http://dreamless.home.attbi.com/
>
> "Great spirits have always encountered violent opposition from
> mediocre minds." - Albert Einstein
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Finding out OS version (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: setting the bounds
  • Next by Date: Re: Good Habits (was: Re: C question for you old guys ;-))
  • Previous by thread: Re: Finding out OS version
  • Next by thread: Re: Finding out OS version
  • Index(es):
    • Date
    • Thread