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

Re: Preferences....


  • Subject: Re: Preferences....
  • From: Charilaos Skiadas <email@hidden>
  • Date: Tue, 8 Mar 2005 10:51:44 -0600

Sorry, this was supposed to go to the whole list.

From: Charilaos Skiadas <email@hidden>
Date: March 8, 2005 10:47:22 AM CST
To: R T <email@hidden>
Subject: Re: Preferences....

On Mar 8, 2005, at 9:16 AM, R T wrote:

- (void)textDidChange:(NSNotification *)aNotification
{
        NSLog(@"aNotification object: %@",
[aNotification
object ]);
}

---------------------

The Log reads...2005-03-07 23:02:41.102 Chromatic
Space[934] aNotification object: <NSTextField:
0x345fd0>

How do I go from this to the float value in the
NSTextField?

Well, [aNotification object] is the textfield you want, the question is to take the string stored there. Ok, look at the NSTextField documentation.
Hm, nothing there. Maybe it is in one of its superclasses? (hint-hint, NSControl).


Always look in the superclass, and its superclass, and its superclass...!! :-)

The point is, that it is a behavior you expect from all controls, to return the value in them at the moment, so the method would be there.

Haris



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: FW: WebKit not there
  • Next by Date: Re: New game on ADC Web site?
  • Previous by thread: Re: Preferences....
  • Next by thread: Re: Recommendations for localization management
  • Index(es):
    • Date
    • Thread