Typo in notification name
Hi all! I've been implementing a preferences for my app to be added to login item list and wanted to observe notification for changes in loginItems list. I used notification watcher app and noticed that apple has a typo in notification name: - com.apple.loginItemsListDidChnage instead of - com.apple.loginItemsListDidChange This typo seems to be dating since 2006 (according to this thread: http://www.osxentwicklerforum.de/thread.php?postid=39885). Was apple notified about this? -- Sweet bits of Cocoa programming http://cocoakids.net/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Custom Title Bar Drawing
Basically you need to draw new window with custom titlebar. When drawing window i use code/tutorial from here: http://cocoawithlove.com/2008/12/drawing-custom-window-on-mac-os-x.html it's quite fresh compared to 2005 ,) Also it should be very useful to create such file template for yourself. On Wed, Dec 2, 2009 at 8:24 PM, Eric Gorr mail...@ericgorr.net wrote: I found this old message: http://lists.apple.com/archives/cocoa-dev/2005/Aug/msg01688.html describing a technique on how to do custom title bars, but since it is rather old, I was wondering if there are better methods now or if this message is still describes the best techniques to use. Basically, what I am looking to do is rather simple. I just need to draw a torn-off look (a wiggly line) on the top edge of a titlebar of a NSPanel. Also, is there any documentation on doing custom drawing of Windows? The Window Programming Guide does not appear to discuss this topic. I am familiar with RoundTransparentWindow (http://bit.ly/6FFJHO) sample application, but that is the closest I've come to documentation. Thank you. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/eimantas%40cocoakids.net This email sent to eiman...@cocoakids.net ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
unused window initializer in document-based cocoa app
Hi all! I'm creating a document-based app with custom drawn windows. I've created a custom window controller and overrode the makeWindowControllers method in my document subclass like so: - (void)makeWindowControllers { windowController = [[BlankWindowController alloc] init]; [self addWindowController:windowController]; [windowController release]; } My window controller initialization looks like this: - (id)init { self = [super initWithWindowNibName:@BlankDoc]; if (self != nil) { NSRect windowFrame = NSMakeRect(100.0f, 800.0f, 500.0f, 500.0f); self.window = [[BlankWindow alloc] initWithContentRect:windowFrame styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:YES]; }; return self; } In BlankDoc.xib file I define custom window controller as file's owner and custom window class (BlankWindow) for window object. BlankWindow initializer looks like this: - (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation { NSLog(@initBeforeSuper: %@, self); self = [super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:bufferingType defer:deferCreation]; NSLog(@initAfterSuper: %@, self); if (self) { // additional window initialization } return self; } However each time i build and run an app i get this error: *** -[BlankWindow initWithFrame:]: unrecognized selector sent to instance I see that only initBeforeSuper log message is output in console window. Why? It does not happen when I use this code in simple (read: not document-based) cocoa app. What am i missing? Shouldn't my window controller initialize window with initWithContentRect:initializers only (i.e. without using window's initWithFrame initializer)? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com