Re: CamelBones question
Re: CamelBones question
- Subject: Re: CamelBones question
- From: Pierre Vaudrey <email@hidden>
- Date: Wed, 12 May 2004 18:35:05 +0200
Le mercredi, 12 mai 2004, ` 17:47 Europe/Paris, Sherm Pendley a icrit :
>
NSRunAlertPanel(\"Warning!", \"Are you sure...?", \"OK", \"Cancel",
>
undef);
OK the following works fine :
NSRunAlertPanel(\"Warning!", \"Are you sure...?", \"OK", \"Cancel", \"")
Now I'll try to sort columns using :
- (void)tableView:(NSTableView *)tableView
didClickTableColumn:(NSTableColumn *)tableColumn
{
NSString * identifier = [tableColumn identifier];
if ([identifier isEqualToString:@"name"]) { // your work-around
needed here also
[items sortUsingSelector:@selector(compareName:)]; //I'll try
to use Perl sort
} else {
[items sortUsingSelector:@selector(comparePrice:)]; // Id
}
[table reloadData];
}
If needed, I'll ask for help
Pierre
_______________________________________________
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.