• 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: HUD Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >HUB Windows (From: Jeremy <email@hidden>)
 >Re: HUD Windows (From: Scott F Bayes <email@hidden>)
 >Re: HUD Windows (From: Jeremy <email@hidden>)
 >Re: HUD Windows (From: Rimas <email@hidden>)
 >Re: HUD Windows (From: Rimas <email@hidden>)
 >Re: HUD Windows (From: Rimas <email@hidden>)
 >Re: HUD Windows (From: Jeremy <email@hidden>)
 >Re: HUD Windows (From: Brian Christensen <email@hidden>)
 >Re: HUD Windows (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: Responding To Screen Saver/Sleep Events
  • Next by Date: Core Data & ManagedObjectContext
  • Previous by thread: Re: HUD Windows
  • Next by thread: Re: HUD Windows
  • Index(es):
    • Date
    • Thread