Re: HUD Windows
Re: HUD Windows
- Subject: Re: HUD Windows
- From: Jeremy <email@hidden>
- Date: Tue, 22 Jan 2008 18:51:12 -0500
Brian,
The window variable is a NSWindowController. The line was supposed to
open the HUD window. Still not working. This is going to drive me
crazy. And is sender supposed to be anything special?
Jeremy
"How would a car function if it were designed like a computer?
Occasionally, executing a maneuver would cause your car to stop and
fail and you would have to re-install the engine, and the airbag
system would say, 'Are you sure?' before going off." - Katie Hafner
On Jan 22, 2008, at 6:46 PM, Brian Christensen wrote:
On Jan 22, 2008, at 18:06, Jeremy wrote:
Ok, now I feel stupid with the B. But ok. I thought I got what you
are saying, band I am looking at my book, and it doesn't seem to be
helping me out much. I am not getting any warnings at all for this
code:
- (void)showLyrics:(id)sender
{
[lyricsWindow setTitle:[NSString stringWithFormat:@"%@ Lyrics",
[[iTunes currentTrack] name]]];
[lyricsText setTitle:[[iTunes currentTrack] lyrics]];
[window showWindow:lyricsWindow];
[lyricsWindow makeKeyWindow];
}
Try changing [lyricsWindow makeKeyWindow] to [lyricsWindow
makeKeyAndOrderFront:sender]. I'm also not sure what this line
"[window showWindow:lyricsWindow]" is supposed to do. Is your
"window" variable really a NSWindowController? What are you trying
to accomplish with that method invocation specifically?
/brian
_______________________________________________
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