Re: CamelBones question
Re: CamelBones question
- Subject: Re: CamelBones question
- From: Sherm Pendley <email@hidden>
- Date: Wed, 12 May 2004 11:47:30 -0400
On May 12, 2004, at 10:54 AM, Pierre Vaudrey wrote:
>
Perl error: Arg 1 isn't an NSString at
>
/Users/pierreva/Documents/perlGedcom/Comments/build/Comments.app/
>
Contents/Resources/CommentsWindowController.pm
D'oh! I thought I'd fixed that bug for good. Okay, I see what's causing
it now, it'll be fixed in the next release.
Meanwhile, there's a work-around. When you need to pass an NSString to
a function - just a function, object and class methods aren't affected
by this - pass a reference. It can be a reference to an NSString
object, or to an ordinary scalar. So the easiest thing is to simply put
a backslash in front of your constant strings, like this:
NSRunAlertPanel(\"Warning!", \"Are you sure...?", \"OK", \"Cancel",
undef);
sherm--
_______________________________________________
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.