• 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
comboboxcell datasource problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

comboboxcell datasource problem


  • Subject: comboboxcell datasource problem
  • From: Warner Onstine <email@hidden>
  • Date: Thu, 27 Apr 2006 21:24:06 -0700

Not sure exactly what I'm doing wrong here. I have attempted to implement the protocol for NSComboBoxCell but apparently I'm doing something wrong as I'm getting this error when I click on the drop-down:

2006-04-27 21:13:40.121 iWorkout[2751] *** -[NSScrollView copyWithZone:]: selector not recognized [self = 0x390200]

Here are some of the code snippets from my DataSource:

{
    [super init];
    weightRoutines = [NSMutableArray array];
    [weightRoutines addObject:@"Bench Press"];
    [weightRoutines addObject:@"Fly"];
    [weightRoutines addObject:@"Incline Press"];

    return self;
}


- (id)comboBoxCell:(NSComboBoxCell *)aComboBoxCell objectValueForItemAtIndex:(int)index
{
return [weightRoutines objectAtIndex:index];
}


Any help is appreciated.

-warner
_______________________________________________
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


  • Follow-Ups:
    • Re: comboboxcell datasource problem
      • From: Warner Onstine <email@hidden>
  • Prev by Date: Subclassing NSPopupButtonCell
  • Next by Date: What is groupName in WebView?
  • Previous by thread: Subclassing NSPopupButtonCell
  • Next by thread: Re: comboboxcell datasource problem
  • Index(es):
    • Date
    • Thread