Window closes on its own

2011-09-05 Thread Alexander Reichstadt
Hi, the window created through the following code closes on its own after one second. Why? PWSuggestionsWindowController *newCon = [[PWSuggestionsWindowController alloc] initWithWindowNibName:@"PWSuggestionsView"]; [[newCon window] makeKeyAndOrderFront:self]; And the subclass of window

Re: Window closes on its own

2011-09-05 Thread Alexander Reichstadt
I added canBecomeKey, now it stays open. Has this been changed after 10.4? Am 05.09.2011 um 09:08 schrieb Alexander Reichstadt: > Hi, > > the window created through the following code closes on its own after one > second. Why? > > PWSuggestionsWindowController *newCon = [[PWSuggestionsWind

NSBrowser column titles disappear when scrolled

2011-09-05 Thread Bill Cheeseman
Long ago, I found that NSBrowser column titles disappear when the user manually scrolls the browser horizontally, or clicks a cell that forces the browser to scroll horizontally to show the children of the new selection in the next column. Manually resizing the window or any column causes them t

Embed time stamp on recorded video

2011-09-05 Thread charisse napeÿfffff1as
Hello all, Is there a way to embed the time stamp in recorded video in iphone? Because I want to see the time still when I play the recorded video. Thanks, Charisse ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

Windows and views and controls, oh my!

2011-09-05 Thread William Squires
Okay, I'm having a tizzy here. Most of the '...learn MacOS X...' programming books gloss over the nitty-gritty of actually creating and displaying various windows, either assuming they're going to be document windows (as part of a document-based app), or they're just there as part of an example

Re: Windows and views and controls, oh my!

2011-09-05 Thread Keary Suska
On Sep 5, 2011, at 9:32 AM, William Squires wrote: > Okay, I'm having a tizzy here. Most of the '...learn MacOS X...' programming > books gloss over the nitty-gritty of actually creating and displaying various > windows, either assuming they're going to be document windows (as part of a > docum

Re: Windows and views and controls, oh my!

2011-09-05 Thread Ken Thomases
On Sep 5, 2011, at 10:32 AM, William Squires wrote: > While I can create the UI easily enough in IB, what I don't understand is how > to actually load, instantiate, and display the window from my view controller > object. A common approach is to: * Create a custom subclass of NSWindowControlle

Re: Windows and views and controls, oh my!

2011-09-05 Thread William Squires
Thanks! On Sep 5, 2011, at 11:07 AM, Ken Thomases wrote: > On Sep 5, 2011, at 10:32 AM, William Squires wrote: > >> While I can create the UI easily enough in IB, what I don't understand is >> how to actually load, instantiate, and display the window from my view >> controller object. > > A c

Re: Window closes on its own

2011-09-05 Thread Jens Alfke
On Sep 5, 2011, at 12:08 AM, Alexander Reichstadt wrote: > the window created through the following code closes on its own after one > second. Why? I’m guessing there’s an extra -release call (or insufficient -retains) and the window’s getting dealloced after the autorelease pool drains. Try

Re: Window closes on its own

2011-09-05 Thread Alexander Reichstadt
I can't due to using the garbage collection. Am 05.09.2011 um 20:47 schrieb Jens Alfke: > > On Sep 5, 2011, at 12:08 AM, Alexander Reichstadt wrote: > >> the window created through the following code closes on its own after one >> second. Why? > > I’m guessing there’s an extra -release call (

Re: Custom Cell Bindings

2011-09-05 Thread Seth Willits
On Sep 3, 2011, at 11:35 PM, Seth Willits wrote: >> I believe that invoking -sendAction:to: on the table view is the X you're >> looking for. > > It's not. sendAction:to: is always called from the mouse tracking for > instance, even when the cell's target and action are both nil, but the table

Re: Windows and views and controls, oh my!

2011-09-05 Thread N!K
Thanks for the description below. It's good. I, too, am floundering when it comes to specifics that are not shown in examples from Apple or BNR books or websites. I understand the examples, but I don't see how to extend them. So, understanding how the windows and views should be structured to

Re: Windows and views and controls, oh my!

2011-09-05 Thread Quincey Morris
On Sep 5, 2011, at 20:43 , N!K wrote: > The examples I've seen all show a window with a view in it and how to draw in > that view. But I want to put up a window with a couple of views in it and > draw in them individually, sometimes clearing and redrawing, sometimes adding > more drawing. You

Re: Long delay of NSPopUpButton first click

2011-09-05 Thread Rimas M.
On Mon, Aug 29, 2011 at 6:40 PM, Glenn L. Austin wrote: > <...> > Also, just because you're using an image for the menu item doesn't mean that > you can't set the title of the item. > Yes - I can set the title of item with an image, but I don't need "duplicated" title which is presented by both -

Re: Long delay of NSPopUpButton first click

2011-09-05 Thread Rimas M.
On Wed, Aug 31, 2011 at 6:04 PM, Glenn L. Austin wrote: > > Having worked on that code at one time, they are doing *exactly* what I > outlined -- they are pre-creating item images (image with mask) and putting > plain text titles in the menu item and drawing the images with the proper > menu backg

Getting notification about new font is available

2011-09-05 Thread Rimas M.
Hello list, During weekend I was trying to figure out how to know when new font becomes available. The only method I was able to find is - (BOOL)fontManager:(id)* theFontManager* willIncludeFont:(NSString *)*fontName* of NSFontManager. But according to the documentation: * Important:* This deleg