Re: NSSound + NSBundle
Re: NSSound + NSBundle
- Subject: Re: NSSound + NSBundle
- From: j o a r <email@hidden>
- Date: Sun, 22 Apr 2007 09:34:19 +0200
On 22 apr 2007, at 03.04, Tim Simon wrote:
song1 = [[NSSound alloc] initWithContentsOfFile:[thisBundle
pathForResource:[NSTextField stringValue] ofType:@"mp3"]
byReference:YES];
Note that this is incorrect:
[NSTextField stringValue]
Implemented in this way would imply that "stringValue" is a class
method of NSTextField, but that's not correct. You need to replace
"NSTextField" with the name of the outlet instance variable that
references this text field.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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