• 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: NSSound + NSBundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSSound + NSBundle (From: "Tim Simon" <email@hidden>)

  • Prev by Date: Re: subclass of NSManagedObject not behaving as expected
  • Next by Date: NSTextView Not Drawing
  • Previous by thread: Re: NSSound + NSBundle
  • Next by thread: Re: Undo Manager (hac)
  • Index(es):
    • Date
    • Thread