• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(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.

  • Follow-Ups:
    • Re: (no subject)
      • From: Michael Hudson <email@hidden>
  • Prev by Date: Re: Moving to Keyed Archiving
  • Next by Date: Re: We are looking for developers for small productivity applications
  • Previous by thread: Re: line spacing of attributed string (was No Subject)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread