(no subject)
(no subject)
- Subject: (no subject)
- From: "E.Ikeda" <email@hidden>
- Date: Wed, 27 Aug 2003 20:34:12 +0900
Hi, I've written test program which displays notification name in a
table view.
It works almost fine, but when new notification is added, the latest
notification name
isn't displayed on the screen. I have to move scroll bar to see what
is the latest one.
What shall I do to see the latest notification name automatically.
Thanks in advance.
------------------------------------------------------------------------
---------------
-(int)numberOfRowsInTableView: (NSTableView *)tableView
{
return [myArray count];
}
-(id)tableView: (NSTableView *)tableView
objectValueForTableColumn: (NSTableColumn *)tableColumn
row: (int) row
{
return [myArray objectAtIndex: row];
}
- (void)windowWillMove:(NSNotification*)notification
{
[myArray addObject: [[[notification name] copy] autorelease]];
[myTable reloadData];
}
- (void)windowDidMove:(NSNotification*)notification
{
[myArray addObject: [[[notification name] copy] autorelease]];
[myTable reloadData];
}
_______________________________________________
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.