Re: generate NSColorWell
Re: generate NSColorWell
- Subject: Re: generate NSColorWell
- From: Jake <email@hidden>
- Date: Wed, 13 Feb 2002 18:48:53 -0500 (EST)
to be more specific, i am trying to generate a table where each entry is
an NSColorWell. In the informal protocal
- (id)tableView:(NSTableView *)view
objectValueForTableColumn:(NSTableColumn *)column
row:(int)rindex
{
NSColorWell *ct;
ct = [[NSColorWell alloc] initWithFrame:[view frame]];
return (ct);
}
wait a second, am I using the wrong frame?
>
Jake,
>
>
I just tried this:
>
>
{
>
NSRect aFrame = {{0,0}, {100,100}};
>
id ct = [[NSColorWell alloc] initWithFrame:aFrame];
>
}
>
>
and did not get an error.
>
are you sure "view" is not nil and is a valid view?
>
When do you get CopyZone errors?
>
>
-lance
>
>
On Wednesday, February 13, 2002, at 06:25 PM, Jake wrote:
>
>
> I have been trying to dynamically generate NSColorWell in my view
>
> without
>
> much success.
>
>
>
> ct = [[NSColorWell alloc] initWithFrame:[view frame]];
>
>
>
> I am getting CopyZone errors. Is there an example of how to do this
>
> programmatically? Thanks.
_______________________________________________
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.