Popup button cells in a table view

2010-07-27 Thread Kiel Gillard
Hi all, I have a table view with a column whose data cell is a NSPopupButtonCell. I am using one array controller to provide the table view rows and a seperate array controller to provide the popup button menu items. My table column (as opposed to the cell) has its content bound to the arranged

Re: shouldAutorotateToInterfaceOrientation not being called ...

2010-07-27 Thread Matt Neuburg
On Mon, 26 Jul 2010 16:53:53 -0700, Jay Reynolds Freeman said: >Sorry I did not make clear; that was an excellent idea; I made one, it worked, and not only does the relevant code (just mentioned) look the same in my app, but also the connections between top-level objects in the nib files look the

Re: Truncating UIActionSheet labels

2010-07-27 Thread Steve Christensen
Although you say that the button labels are generated dynamically, does it really not make sense for you to generate the alert title and/or message strings dynamically and use static button labels (OK/Cancel, Yes/No, etc.)? Both of those fields are set up to resize to fit the strings. Otherwise

Truncating UIActionSheet labels

2010-07-27 Thread Fritz Anderson
iOS 3.2 (iPad) I want to present a UIActionSheet on an iPad. The label strings for the choices are dynamically constructed. The strings may be wider than the buttons, and tail truncation isn't good — the distinct parts are mostly at the end. Is there any way to get middle truncation into the la

Re: Modal phone calls?

2010-07-27 Thread Luke the Hiesterman
On Jul 27, 2010, at 3:18 PM, Martin Stoufer wrote: > > I have a working app that is using the openURL: method on its > sharedApplication to dial a phone#. The issue I am unable to resolve now is > how to get the phone app to 'background' itself once the call is over and > bring back my app to

Modal phone calls?

2010-07-27 Thread Martin Stoufer
I have a working app that is using the openURL: method on its sharedApplication to dial a phone#. The issue I am unable to resolve now is how to get the phone app to 'background' itself once the call is over and bring back my app to the foreground. I am reading up on many possible avenues in t

Test Applications under 10.4 without rebooting?

2010-07-27 Thread Mr . Gecko
Hello, I'm wondering if there would be a way to test my applications under 10.4 without rebooting. I own 4 copies of 10.4 and I have 10.4 on a partition to boot into and test my software, but I'll rather not have to reboot to test my applications as rebooting is a pain. I thought of a few things

Re: Elapsed time vs sleep

2010-07-27 Thread Fritz Anderson
On 27 Jul 2010, at 1:42 PM, Jeffrey Oleander wrote: > Whatever happened to hardware monitoring and control > of the CPU (core)? They are there. In the kernel. For user-space code, Darwin is not a real-time operating system. Period. Apple has been saying so for ten years or more. I'm not an exp

-remoteControlReceivedWithEvent: is not getting called

2010-07-27 Thread Steve Christensen
I am trying to get remote control events to start/stop some audio my app is playing, but -remoteControlReceivedWithEvent: isn't getting called. My app has a tab bar that switches among multiple views, if that makes any difference. The view controller for each view implements the setup per Apple'

Re: Elapsed time vs sleep

2010-07-27 Thread Jeffrey Oleander
> On Mon, 2010/07/26, Kyle Sluder wrote: >> Charlie Dickman <3tothe...@comcast.net> wrote: >> As long as the NSTimer firing interval is >> sufficiently small the NSTimer can be used. >> If the run loop is stalled for any "significant: >> time _all_ timers will be inaccurate to some >> degree. > >

MacTech Conference 2010: Registration Open

2010-07-27 Thread Edward Marczak
On June 8th, I sent a note to this list looking for speakers for MacTech Conference. To follow up: the responses have been really wonderful and the conference is open for registration. You'll likely recognize many of the people presenting, and there are many new-comers with great material. It's go

Creating of "Open with" menu like in Finder

2010-07-27 Thread Vera Tkachenko
Hello, I want to build exactly the same menu as Finder's 'Open With' menu. Is there an easy way to do this instead of creating this menu manually using LaunchServices? Thanks, Vera Tkachenko___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

Re: tableview multiple selected loop

2010-07-27 Thread Amy Gibbs
Thanks, realised I don't actually need to loop through, as I can just assign the whole set to the relationship: [[kit mutableSetValueForKey:@"kitItem"] addObjectsFromArray:kitItems]; Thanks, On 27 Jul 2010, at 2:05PM, Graham Cox wrote: On 27/07/2010, at 5:53 PM, Amy Gibbs wrote: If i've

Re: tableview multiple selected loop

2010-07-27 Thread Graham Cox
On 27/07/2010, at 5:53 PM, Amy Gibbs wrote: > If i've got multiple rows selected in a table view, and I want to do > something with each of them, do I need some kind of loop in my code, or will > cocoa automatically run the code for each selected row? I can't find any kind > of while, foreach

Re: iPhone orientation problems

2010-07-27 Thread Eric Giguere
Hi Laurent No apologies please, your input did guide me in the right direction. The structure of my application was some kind of workaround of the problem where NavigationController cannot be loaded from a nib, at least not like the other type of controllers due to the fact that this guy create

Re: Knowing how a Text Editing Session ended

2010-07-27 Thread Motti Shneor
Thanks Keary, In the mean time I already done lot's of Googling and dug into the docs, but what I found was quite discouraging. First, the FieldEditor is a preconfigured instance of NSTextView attached to the window. There's only one field-editor serving all the NSTextField's of the window. I

Re: How to fastly get the active window's title?

2010-07-27 Thread Dave Keck
CGWindowListCreate() and CGWindowListCreateDescriptionFromArray() are probably your best bet, with the accessibility APIs being another option. Note that that UI controls are sometimes implemented as separate windows, but from the user's perspective they belong to a parent window; this is somethin

tableview multiple selected loop

2010-07-27 Thread Amy Gibbs
Hi, If i've got multiple rows selected in a table view, and I want to do something with each of them, do I need some kind of loop in my code, or will cocoa automatically run the code for each selected row? I can't find any kind of while, foreach type of loop example anywhere? Thanks (Bac