Re: HUD Windows
Re: HUD Windows
- Subject: Re: HUD Windows
- From: Jeremy <email@hidden>
- Date: Wed, 23 Jan 2008 15:20:52 -0500
Hey,
OK. So now I got it working and all that. But the application stalls
when it is opened for the second time (no matter what). Here's the code:
- (void)showLyrics:(id)sender
{
[lyricsWindow setTitle:[NSString stringWithFormat:@"%@ - Lyrics",
[[iTunes currentTrack] name]]];
[lyricsWindow makeKeyAndOrderFront:sender];
[lyricsText setStringValue:[[iTunes currentTrack] lyrics]];
}
On Jan 22, 2008, at 7:58 PM, Kyle Sluder wrote:
On Jan 22, 2008 7:36 PM, Brian Christensen <email@hidden> wrote:
This log output you provided...
2008-01-22 18:43:49.699 Tune-A-Holic[8099:10b] *** -[NSTextField
setTitle:]: unrecognized selector sent to instance 0x126cb0
...should be your indicator that something is wrong with that line of
code. It means you're trying to invoke a method that doesn't exist
for
the NSTextField class. The solution in this case is to use
setStringValue: instead, but to avoid these mistakes in the future
you
should refer to the reference documentation and/or the appropriate .h
file (in this case, NSTextField.h) when you see a message like that.
Blame me for that one, I was playing it from memory.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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