• 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: Reaching the limits of 'learn by example'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reaching the limits of 'learn by example'


  • Subject: Re: Reaching the limits of 'learn by example'
  • From: Stefan Arentz <email@hidden>
  • Date: Sun, 13 May 2001 23:36:37 +0200

On Sun, May 13, 2001 at 11:25:51PM +0200, Cyril Godefroy wrote:
> On Sunday, May 13, 2001, at 11:14 PM, Stefan Arentz wrote:
> >
> > What you get back is the NSMenuItem that was selected. From the menu
> > item
> > you request it's 'represented object' or tag value. Both should just
> > work
> > so I think there's something wrong with the code that sets up the menu.
> >
> > Maybe you can post the relevant code for your docket, I'm sure we can
> > find out what's causing this.
> >
> > Stefan
>
> Here are the relevant parts of the code:

Ok. Mini code review :-)

> -(void) itemSelected:(id)sender
> {
> NSString *level = [sender representedObject];
> Float32 intLevel=0.1; //testing
> //Float32 intLevel = [level intvalue]/6;

This should be intValue. Capital V.

> NSLog(@"level is:%@",level);

This doesn't work? What do you see in the console?

Stefan


  • Follow-Ups:
    • Re: Reaching the limits of 'learn by example'
      • From: Cyril Godefroy <email@hidden>
References: 
 >Re: Reaching the limits of 'learn by example' (From: Stefan Arentz <email@hidden>)
 >Re: Reaching the limits of 'learn by example' (From: Cyril Godefroy <email@hidden>)

  • Prev by Date: Re: Reaching the limits of 'learn by example'
  • Next by Date: Re: Reaching the limits of 'learn by example'
  • Previous by thread: Re: Reaching the limits of 'learn by example'
  • Next by thread: Re: Reaching the limits of 'learn by example'
  • Index(es):
    • Date
    • Thread