Re: Icon in window title
Re: Icon in window title
- Subject: Re: Icon in window title
- From: Andreas Monitzer <email@hidden>
- Date: Sat, 26 May 2001 21:37:38 +0200
On Saturday, May 26, 2001, at 09:18 , Tom Waters wrote:
I found this in MacWindows.h
extern OSStatus SetWindowProxyIcon(WindowRef window, IconRef icon);
It might solve my problem if I knew how to convert an NSWindow to a
WindowRef and an NSImage to an IconRef.
Anybody know how to do this?
From NSWindow.h:
@interface NSWindow(NSCarbonExtensions)
// create an NSWindow for a Carbon window - windowRef must be a Carbon
WindowRef - see MacWindows.h
- (NSWindow *)initWithWindowRef:(void * /* WindowRef */)windowRef;
// return the Carbon WindowRef passed into initWithWindowRef: - see
MacWindows.h
- (void * /* WindowRef */)windowRef;
@end
andy
--
Discussion forthcoming.