Re: id to NSString
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>) |