Re: Windows, NSTableView and newie question
Re: Windows, NSTableView and newie question
- Subject: Re: Windows, NSTableView and newie question
- From: email@hidden
- Date: Tue, 22 Jan 2002 15:44:17 -0300
- Organization: Perfil
Thanks, it works!!!. I have 1 more question. For doing this I must
subclass for example my NSWindow and put the awakefromnib. I tried to
subclass the NSTableView, as a tableview and nsscrollview (IB says its a
NSScrollView). WHen i do that my application exist with errors :
2002-01-22 15:37:22.372 HPop[1706] AppKitJava: uncaught exception
NSArchiverArchiveInconsistency (*** file inconsistency: read '@',
expecting 'C')
2002-01-22 15:37:22.374 HPop[1706] AppKitJava: exception = *** file
inconsistency: read '@', expecting 'C'
2002-01-22 15:37:22.374 HPop[1706] AppKitJava: terminating.
HPop.app has exited with status 1.
My NSScrollView subclass is:
import com.apple.cocoa.foundation.*;
import com.apple.cocoa.application.*;
public class MyScrollView3 extends NSScrollView {
public MyScrollView3() {
super();
}
public MyScrollView3(NSRect frameRect) {
super(frameRect);
}
}
Brian Webster,email@hidden,internet writes:
On Tuesday, January 22, 2002, at 11:29 AM, cocoa-dev-
email@hidden wrote:
>
Hello, I'm a little new to this. I'm doing a java cocoa simple
>
application that have in the initial window a table view.
>
I make the datasource for the table and a button in the window
>
that when
>
I press it I load the data in the table for display.
>
I want to show the data automatically when the initial window displays
>
(at program startup) and I don't know how to do that.
If you want to do anything to initialize your interface after it
loads, implement the method awakeFromNib() in the appropriate
object, your data source in this case. From there you can then
call your method that loads the data for the table.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
--- Internet Message Header Follows ---
Return-Path: <email@hidden>