• 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
Getting rid of warning in Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting rid of warning in Xcode


  • Subject: Getting rid of warning in Xcode
  • From: Mark Munz <email@hidden>
  • Date: Fri, 12 Dec 2003 20:50:26 -0700

I'm writing some code that uses a new 10.3 API only if it's found (ie. respondsToSelector: and only sends the message if it does respond).

The problem I have is that Xcode always warns me on each one of these. Is there some technique to get rid of the warning for the cases that I know aren't correct?

NSButton* btn;

{btn gets setup}

if ([btn respondsToSelector:@selector(setHidden:)])
{
        [btn setHidden:YES];   <-- ALWAYS get a warning
}

Any help with this would be great.

Thanks.

Mark Munz
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Getting rid of warning in Xcode
      • From: Laurent Daudelin <email@hidden>
  • Prev by Date: Re: Depending on other projects
  • Next by Date: Re: Getting rid of warning in Xcode
  • Previous by thread: Fwd: PackageMaker Requirements Checking Question
  • Next by thread: Re: Getting rid of warning in Xcode
  • Index(es):
    • Date
    • Thread