[Pyobjc-dev] How to translate from Obj-C?
Brought to you by:
ronaldoussoren
From: Łukasz D. <dzi...@al...> - 2008-09-18 11:34:55
|
Hi Everybody! I'm trying to do my own toolbox in IB. I'm watching carefully Obj-C example Sketch, and I found in app delegate: > - (IBAction)showOrHideToolPalette:(id)sender { > > // We always show the same tool palette panel. Its controller > doesn't get deallocated when the user closes it. > [[SKTToolPaletteController sharedToolPaletteController] > showOrHideWindow]; > > } > and in SKTToolPaletteController > + (id)sharedToolPaletteController { > static SKTToolPaletteController *sharedToolPaletteController = > nil; > > if (!sharedToolPaletteController) { > sharedToolPaletteController = [[SKTToolPaletteController > allocWithZone:NULL] init]; > } > > return sharedToolPaletteController; > } All my attempts generates error "<class 'objc.error'>: need self argument" :-( Could somebody help me? Ł |