| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I just noticed that windowRef is always returning nil.
If you read the comment below carefully, it seems that windowRef only works when you created the window with initWithWindowRef.
Is there no way to get a windowRef back from a window created from a NIB? (mine is a document window).
On Saturday, May 26, 2001, at 12:37 PM, Andreas Monitzer wrote:
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.
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
| References: | |
| >Re: Icon in window title (From: Tom Waters <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.