• 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: newbie interface problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie interface problem


  • Subject: Re: newbie interface problem
  • From: Cameron Hayne <email@hidden>
  • Date: Tue, 4 Oct 2005 20:08:49 -0400


On 4-Oct-05, at 7:07 PM, Bob Sabiston wrote:

Each field and button I have connected to an outlet in my class. I use something like the following to set them:

- (void)setDuration:(double)d {
    [duration setDoubleValue: d];
    NSLog(@"set Duration to %lf",d);
}

where 'duration' is the outlet name for a text field.

I think this is the problem. You are colliding with the conventions of key-value coding.
See question 3.7.4 of the FAQ at http://www.alastairs-place.net/cocoa/ faq.txt
Try changing the names of your IB outlets - e.g. use "durationTxf" instead of "duration".


--
Cameron Hayne
email@hidden


_______________________________________________ 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
References: 
 >newbie interface problem (From: Bob Sabiston <email@hidden>)

  • Prev by Date: Core Data - awakeFromInsert
  • Next by Date: Re: newbie interface problem
  • Previous by thread: newbie interface problem
  • Next by thread: Re: newbie interface problem
  • Index(es):
    • Date
    • Thread