Re: [Pyobjc-dev] Re: interface builder queries
Brought to you by:
ronaldoussoren
From: b.bum <bb...@ma...> - 2003-08-26 21:04:23
|
On Aug 26, 2003, at 10:19 AM, Michael Hudson wrote: > I had stumbled towards the fact that I might want to do that, but I > have *no* idea where to even start... I don't suppse anyone has an > example knocking around? Even one in ObjC would be helpful, I guess. - have a look at the example palette(s) provided in /Developer/Examples/ - create an Interface Builder palette project (punt on the whole PyObjC thing for the moment -- straight ObjC will be more straightforward for now) You can listen for the following notifications if you want to know about Documents being opened/saved/closed: IB_EXTERN NSString * const IBDidOpenDocumentNotification; IB_EXTERN NSString * const IBWillSaveDocumentNotification; IB_EXTERN NSString * const IBDidSaveDocumentNotification; IB_EXTERN NSString * const IBWillCloseDocumentNotification; The IBDocuments protocol contains most of what you need for attaching and detaching objects. I would suggest that you use nibtool to dump a summary of the nib file at command line... nibtool -a MyTest.nib .... then exercise the APIs found in the InterfaceBuilder framework to see how the programatically interrogated object graph matches the summary from nibtool. b.bum |