(no subject)
(no subject)
- Subject: (no subject)
- From: "Michael A. Crawford" <email@hidden>
- Date: Fri, 26 Nov 2004 20:20:13 -0800
I'm trying to run the RCE example from Michael Beam's "Incorporating Rendezvous into Your Cocoa Applications."
http://www.macdevcenter.com/pub/a/mac/2002/11/08/cocoa.html
http://www.macdevcenter.com/pub/a/mac/2002/11/15/cocoa.html
http://www.macdevcenter.com/pub/a/mac/2003/05/13/cocoa.html
The problem is that when I run the example the table-view, which should show any active RCE clients, is blank all the time. I can see from the debugger and trace output that two service instances are being discovered added to the NSMutableArray associated with the table-view, but they don't show up in the table-view. The reloadData method is being called when the services are added and removed from the array, per the example in the articles.
Besides instrumenting the code, which I've done, is there any other way I can see what is going on when reloadData is called? I have breakpoints on the following methods but they only seem to be called at application startup, when the array has zero entries.
-Michael
@interface RCEController : NSObject
{
// instance variables
NSMutableArray* discoveredServices;
NSNetServiceBrowser* domainBrowser;
NSFileHandle* listeningSocket;
NSNetService* service;
NSNetServiceBrowser* serviceBrowser;
NSSocketPort* socketPort;
// outlets
IBOutlet id discoveredServicesList;
IBOutlet id username;
}
- (int)numberOfRowsInTableView:(NSTableView*)tableView
{
return [discoveredServices count];
}
- (id)tableView:(NSTableView*)tableView objectValueForTableColumn:(NSTableColumn*)tableColumn
row:(int)row
{
return [discoveredServices objectAtIndex:row];
}
_______________________________________________
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