• 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: id to NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: id to NSString


  • Subject: Re: id to NSString
  • From: Clark Mueller <email@hidden>
  • Date: Sat, 20 Jul 2002 00:42:19 -0600

Cast the "id" to an NSString pointer. Your "id" object in this case is "[aTableColumn identifier]". You can rewrite your line of code as:

[(NSString *)[aTableColumn identifier]compare:@"remonte"]

and the warning should go away.

Clark

On Friday, July 19, 2002, at 11:32 PM, Famille GOUREAU-SUIGNARD wrote:

Hi,

does anibody know how to convert an Id to a NSString ?

For exemple :
[[aTableColumn identifier]compare :@"remonte"] brings warning messages :

multiple declaration for method 'compare:'
one for NSDates, one for NSString, one for NSSNumber, ...

Thanks by advance.

Camille
_______________________________________________
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.


Clark Mueller
email@hidden
---
http://www.finikin.com/
http://www.finikin.com/clark/
---
Computer programmers don't byte, they nibble a bit.
_______________________________________________
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: 
 >id to NSString (From: Famille GOUREAU-SUIGNARD <email@hidden>)

  • Prev by Date: Re: Crashing Subclass
  • Next by Date: Questing about NSAttributedStrings and begin/end editing
  • Previous by thread: id to NSString
  • Next by thread: Questing about NSAttributedStrings and begin/end editing
  • Index(es):
    • Date
    • Thread