NSTableView in code
NSTableView in code
- Subject: NSTableView in code
- From: email@hidden
- Date: Mon, 22 Nov 2004 11:19:47 -0500
Is it possible to add an NSTableView to a NSWindow in code? Im doing
this here:
// contentframe = get content frame from a windows content view
// content = nswindows content view
NSTableView* view = [[NSTableView alloc] initWithFrame:contentframe];
[view setAutoresizingMask:( NSViewWidthSizable | NSViewHeightSizable )];
[content addSubview:view];
NSTableColumn* col = [[NSTableColumn alloc] initWithIdentifier:window];
[[col headerCell] setStringValue:@"Hello"];
[col setWidth:200];
[view addTableColumn:col];
When i do it like this, i get nothing in the window. If i remove the
column adding code, i get my view filled with white. Any idea whats
wrong?
thanks
Alex
_______________________________________________
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