• 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: Troubles with popUpCell and tableview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Troubles with popUpCell and tableview


  • Subject: Re: Troubles with popUpCell and tableview
  • From: jean Bousquet <email@hidden>
  • Date: Wed, 11 Sep 2002 15:58:55 +0200

le 10/09/02 17:12, email@hidden `
email@hidden a icrit :

> NSTableColumn *tabColumn = [NSTableColumn alloc];
> tabColumn = [tab tableColumnWithIdentifier:@"function"];
> ....;
> [tabColumn release];

> This works perfectly under the debugger. But a problem appears AFTER
> this code (but i'm not able
> to locate where exactly) ; i have a strange message :
>
> 2002-09-10 11:41:27.569 NNK S.E 4[928] *** -[NSCFSet width]: selector
> not recognized
> 2002-09-10 11:41:27.584 NNK S.E 4[928] *** -[NSCFSet width]: selector
> not recognized
>
> The message comes several times (i can have a lot).
> The GUI is completely frozen. If i delete the for... loop, all works
> well. I think this is because of this code :
> [arrayOfIndex addObject:[NSNumber numberWithInt:[[tabColumn
> dataCellForRow:i] indexOfSelectedItem]]]
>
> Why it generates a problem ? Is there another way to read the selected
> item of each popupcell ?
> Any idea ?

NSTableColumn *tabColumn = [NSTableColumn alloc];
tabColumn = [tab tableColumnWithIdentifier:@"function"];
.....
[tabColumn release];

Here is probably a problem
You alloc tabColumn but redefine it the line after
and finally release what you redefined but not what you alloced.
Try to delete the 2 lines :
NSTableColumn *tabColumn = [NSTableColumn alloc];
[tabColumn release];
and tell me what happens
Hope will help
Jean
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Troubles with popUpCell and tableview
      • From: kubernan <email@hidden>
  • Prev by Date: Re: IB and smb volumes
  • Next by Date: Re: [newbie] NSString code so it won't leak
  • Previous by thread: Troubles with popUpCell and tableview
  • Next by thread: Re: Troubles with popUpCell and tableview
  • Index(es):
    • Date
    • Thread