• 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: #pragma to suppress a warning message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #pragma to suppress a warning message


  • Subject: Re: #pragma to suppress a warning message
  • From: BJ Homer <email@hidden>
  • Date: Wed, 16 Sep 2009 21:54:32 -0600

If you're just wanting to use the method and avoid the warning, add a
category to NSLocale declaring the preferred languages.  Just add the
interface; no implementation is necessary.
You may want to do further investigation; however.  It's possible that the
preferredLanguages method appeared mid-way through the 10.4 lifecycle, so it
may work for some Tiger users and not others.

-BJ

On Wed, Sep 16, 2009 at 7:09 PM, Jay Boyer <email@hidden> wrote:

> I have three related questions.  I’d like to suppress a particular warning
> message in the source file.  In gnu it could be done as follows:
>
> #pragma Warnings(Off)
>               NSArray *languages = [NSLocale preferredLanguages];
> #pragma Warnings(On)
>
> Is there a way to do this in xcode with #pragma?
>
> Also, can anyone point me to a list of the #pragma’s for xcode?
>
> Finally, I am doing this because the preferredLanguages method is specified
> to be an OS 10.5+ method and the project I am working on is being built on
> the 10.4 SDK.  Nonetheless, on the 10.4 machine where I tested this, the
> method works.  Does anybody know what the story is with this method and
> 10.4?  Is this method actually supported by 10.4 or is it something that
> happens to be supported if certain other software has been installed on a
> 10.4 platform?
>
> Thanks,
>
> Jay_______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >#pragma to suppress a warning message (From: Jay Boyer <email@hidden>)

  • Prev by Date: #pragma to suppress a warning message
  • Next by Date: Re: #pragma to suppress a warning message
  • Previous by thread: #pragma to suppress a warning message
  • Next by thread: Re: #pragma to suppress a warning message
  • Index(es):
    • Date
    • Thread