• 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
another newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

another newbie question


  • Subject: another newbie question
  • From: Bob Sabiston <email@hidden>
  • Date: Wed, 7 Sep 2005 10:24:43 -0500

Hello,
I am trying to set up an NSTableDataSource to show an array of values. I am expanding from the .h file that I already have to communicate between my Carbon app and the Cocoa bundle. Below I have two declarations, I would like to connect the NSTableView DataSource in IB to the "RunThreadViewer" object below. However, in IB when I control-drag from the Table to my File's Owner, it automatically selects Controller instead of RunThreadViewer, and I can't figure out how to get it to change.


Does it always select the first object in a header? Is there something wrong with my second object?

Thanks for any tips on this newbie question
Bob



#import <Cocoa/Cocoa.h>
#import "CocoaBundle.h"


typedef OSStatus (*CallBackType)(int);

@interface Controller : NSObject {
    id window;
    id textField;
    CallBackType _callBack;
}

- (void)setCallBack:(CallBackType)callBack;
- (void)showWindow;
+ (id)sharedController;
@end


@interface RunThreadViewer : NSObject { id window; CallBackType_callBack; }

- (int)numberOfRowsInTableView:(NSTableView *)aTableView;
- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn: (NSTableColumn *)aTableColumn row:(int)rowIndex;
- (void)SetCallBack:(CallBackType)callBack;
@end


_______________________________________________
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


  • Prev by Date: RE: nstimer not firing?
  • Next by Date: IBOutlet not 'sticking' at runtime
  • Previous by thread: Re: Core Data Accessor method generation
  • Next by thread: IBOutlet not 'sticking' at runtime
  • Index(es):
    • Date
    • Thread