RE: Issues with applications running on background (Alarm Application)

2014-12-17 Thread Claudio M. E. Bastos Iorio
Thanks Kyle, based on my debugging, the default limit is 180 secs. But you can start the process again, and fire up a new background task. Claudio M. E. Bastos Iorio -Original Message- From: Kyle Sluder [mailto:k...@ksluder.com] Sent: Tuesday, December 16, 2014 8:06 PM To: Claudio Maxi

RE: Issues with applications running on background (Alarm Application)

2014-12-17 Thread Claudio M. E. Bastos Iorio
Hi Jens, “What behavior, that you've seen in an existing 3rd party app, are you trying to implement?” Good question. I’m not really sure if the features that I’m trying to implement are actually doable on iOS :( For most of the alarm apps out there, AFAIK they are using Local Notifications.

Observing changes in Table

2014-12-17 Thread Gerriet M. Denkmann
A TableView with an ArrayController which has an Array of MutableDictionaries; keys corresponding to TableColumns. The table is editable and the dictionary of the edited row gets changed. All as expected. But I want to know when any value of any row has been changed by the user, in order to upd

Re: Observing changes in Table

2014-12-17 Thread Jerry Krinock
> On 2014 Dec 17, at 02:02, Gerriet M. Denkmann wrote: > > A TableView with an ArrayController which has an Array of > MutableDictionaries; keys corresponding to TableColumns. > The table is editable and the dictionary of the edited row gets changed. > > But I want to know when any value of an

Re: OSAScriptController's stopScript action

2014-12-17 Thread Jonathan Mitchell
Can you show us how you launch the script. > On 17 Dec 2014, at 05:09, sqwarqDev <2551p...@gmail.com> wrote: > > Once again, apologies for cross posting, but again this is partly an > AppleScript question and partly a Cocoa question. To wit: > > Is there any way to programmatically stop a scri

Re: Replace -lockFocus with Block-Based Drawing Method (was NSCustomImageRep…)

2014-12-17 Thread Jerry Krinock
I think I did what the "High Resolution Guidelines for OS X” document suggested for drawing offscreen vector images. See code snip below. The result looks the same to me. It’s OK with the old code, and OK with the new code. To help me understand what I’m doing, I would appreciate if someone p

Re: Observing changes in Table

2014-12-17 Thread Gerriet M. Denkmann
> On 17 Dec 2014, at 18:32, Jerry Krinock wrote: > > >> On 2014 Dec 17, at 02:02, Gerriet M. Denkmann wrote: >> >> A TableView with an ArrayController which has an Array of >> MutableDictionaries; keys corresponding to TableColumns. >> The table is editable and the dictionary of the edited r

How to make a TableColumn unsortable

2014-12-17 Thread Gerriet M. Denkmann
I tried: myTableColumn.sortDescriptorPrototype = nil; But clicking in the Header still sorts it. What am I missing? Gerriet. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: How to make a TableColumn unsortable

2014-12-17 Thread Ulf Dunkel
Hi Gerriet. Maybe this link can help: http://stackoverflow.com/questions/4311334/how-to-disable-sorting-in-nstableview - - - - - Am 17.12.2014 um 14:29 schrieb Gerriet M. Denkmann: > I tried: myTableColumn.sortDescriptorPrototype = nil; > But clicking in the Header still sorts it. > > What am I

Re: OSAScriptController's stopScript action

2014-12-17 Thread sqwarqDev
> On 17 Dec 2014, at 19:07, Jonathan Mitchell wrote: > > Can you show us how you launch the script. > The script is just in a bog standard NSTextView, with a bit of tinkering to the text attributes, and then it's simply a call to OSAScript: NSString *source = [textView string]; NS

Re: Replace -lockFocus with Block-Based Drawing Method (was NSCustomImageRep…)

2014-12-17 Thread Ken Thomases
On Dec 17, 2014, at 6:52 AM, Jerry Krinock wrote: > I think I did what the "High Resolution Guidelines for OS X” document > suggested for drawing offscreen vector images. See code snip below. > > The result looks the same to me. It’s OK with the old code, and OK with the > new code. > > To

Re: Observing changes in Table

2014-12-17 Thread Ken Thomases
On Dec 17, 2014, at 7:10 AM, Gerriet M. Denkmann wrote: > TableView has textDidEndEditing, but this is deprecated. > The delegate has ...shouldEditTableColumn... but I need ...didEdit... > > The table is cell-based. -textDidEndEditing: is only deprecated in the sense that all methods specific

Re: Added Toolbar, now main window can't be resized

2014-12-17 Thread Charles Jenkins
(I accidentally sent the following email only to Quincey, but I think I should post it to this list as well, for the benefit of anyone who encounters a similar problem in the future and searches the list archives.) Well, there you go. Another newbie booby trap! :-D It looks like the demo app wo

Re: Added Toolbar, now main window can't be resized

2014-12-17 Thread Ken Thomases
For what it's worth, I have an app with a window like you describe: toolbar, split view with source list on the left and content on the right. It uses auto layout and has no problem resizing even though the split view's delegate implements those methods listed in the release notes. What that m

Re: Observing changes in Table

2014-12-17 Thread Keary Suska
On Dec 17, 2014, at 3:02 AM, Gerriet M. Denkmann wrote: > A TableView with an ArrayController which has an Array of > MutableDictionaries; keys corresponding to TableColumns. > The table is editable and the dictionary of the edited row gets changed. > > All as expected. > > But I want to know

Re: OSAScriptController's stopScript action

2014-12-17 Thread sqwarqDev
> > Is there any way to programmatically stop a script once it's running > > without using OSAScriptController's 'stopScript' IBAction? > > See OSASetActiveProc() in the Retired Documents library: > > https://developer.apple.com/legacy/library/documentation/Carbon/Reference/Open_Scripti_Architec

Re: Added Toolbar, now main window can't be resized

2014-12-17 Thread Charles Jenkins
Thank you Ken. Recreating the UI with the Toolbar first was actually the first thing I tried, and it didn't help. (I tried that in case the NIB file just got confused somehow and the problem would be fixed by starting from scratch.) In my step-by-step explanation, I said to add the Toolbar last

Re: OSAScriptController's stopScript action

2014-12-17 Thread sqwarqDev
> > On 17 Dec 2014, at 12:24, Brian Christmas wrote: > > For stopping a vanilla applescript from running, press Command-. ( that’s > Command - full stop) Hi Bria To my surprise, it turns out that that's a system wide keychord that my own editor app can also utilise, and not just a shortcut r

Re: Observing changes in Table

2014-12-17 Thread Jerry Krinock
> On 2014 Dec 17, at 07:23, Keary Suska wrote: > > By not using NSMutableDictionary ;-) Yes, that is good advice. I’m also worried that you’ve interposed this NSMutableDictionary in between your array controller and your actual data model. Don’t do that. Bind to the data model directly. A

Re: Replace -lockFocus with Block-Based Drawing Method (was NSCustomImageRep…)

2014-12-17 Thread Jerry Krinock
> On 2014 Dec 17, at 05:59, Ken Thomases wrote: > > When you draw a single time using -lockFocus, your image can only be > appropriate for one or the other. So, it will either be drawn at standard > resolution, in which case it will look fuzzy or blocky on a high-resolution > screen; or it w

Re: NSView nextResponder always the viewController?

2014-12-17 Thread Gordon Apple
Thanks, I¹ll look into that. It would have been nice if the docs has more explanation of how they are handling the responder chain for viewControllers. Also, it appears that the view is now holding a reference to the viewController (when used). However, it is not public. I wish that would make tha

Re: Issues with applications running on background (Alarm Application)

2014-12-17 Thread Jens Alfke
> On Dec 16, 2014, at 10:37 PM, Claudio Maximiliano Edison Bastos Iorio > wrote: > > Is it possible to wakeup/resume an iPhone application from background mode to > foreground mode programmatically? How? No. From the user's perspective, the app they're using would abruptly disappear, to be r

Re: Issues with applications running on background (Alarm Application)

2014-12-17 Thread Fritz Anderson
> On Dec 16, 2014, at 9:55 PM, Claudio Maximiliano Edison Bastos Iorio > wrote: > > soundName property is OK, and allows to use any embedded sound. But there’s > no way to load any custom view dispatched right from the LocalNotification, > at least no with a previous user interaction. > > I’v

Re: Issues with applications running on background (Alarm Application)

2014-12-17 Thread Mike Abdullah
> On 17 Dec 2014, at 17:18, Fritz Anderson wrote: > >> On Dec 16, 2014, at 9:55 PM, Claudio Maximiliano Edison Bastos Iorio >> wrote: >> >> soundName property is OK, and allows to use any embedded sound. But there’s >> no way to load any custom view dispatched right from the LocalNotificatio

RE: Issues with applications running on background (Alarm Application)

2014-12-17 Thread Claudio M. E. Bastos Iorio
Hello everyone, Thanks so much for all your responses. I think that I will rely only on the Local Notifications then. Claudio M. E. Bastos Iorio -Original Message- From: Mike Abdullah [mailto:mabdul...@karelia.com] Sent: Wednesday, December 17, 2014 9:56 AM To: Fritz Anderson Cc: Claud

Re: Observing changes in Table

2014-12-17 Thread Lee Ann Rucker
On Dec 17, 2014, at 8:12 AM, Jerry Krinock wrote: > >> On 2014 Dec 17, at 07:23, Keary Suska wrote: >> >> By not using NSMutableDictionary ;-) > > Yes, that is good advice. I’m also worried that you’ve interposed this > NSMutableDictionary in between your array controller and your actual d

UIImagePickerController confused by landscape-only layout

2014-12-17 Thread Carl Hoefs
How can I make the iOS 8 camera image picker (UIImagePickerController aka PLUICameraViewController) present properly in a landscape-only mode app? When I do this, the picker comes up in landscape mode but the camera image within it is displayed rotated by +90 degrees no matter the rotation of th

NSTextView and Syntax Highlighting

2014-12-17 Thread Charles Jenkins
In my text-editing app, there are some special characters I’d like to highlight whenever they are entered. I developed a function for this purpose, found in my subclass of NSTextView: -(void)setTemporaryAttributes:(NSDictionary*)attributes forSpecialCharacters:(NSCharacterSet*)set

Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?

2014-12-17 Thread Jerry Krinock
I have spent several hours looking for a combination of NSSegementedControl of a given style and/or NSButton of a given style that will look like the buttons and what appear to be segmented controls in the toolbars of Xcode and Mail in Yosemite. So far, I have not found the answer. Is there an

Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?

2014-12-17 Thread Shane Stanley
On 18 Dec 2014, at 4:40 pm, Jerry Krinock wrote: > > I have spent several hours looking for a combination of NSSegementedControl > of a given style and/or NSButton of a given style that will look like the > buttons and what appear to be segmented controls in the toolbars of Xcode and > Mail in

Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?

2014-12-17 Thread Jerry Krinock
> On 2014 Dec 17, at 22:02, Shane Stanley wrote: > > You're not saying which version of Xcode 6.1 > FWIW, I went through a lot of similar trial and error, and found that setting > a segmented style of Automatic gives me a similar result to, say, the View > menu in a Finder window. Ah, I se

Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?

2014-12-17 Thread Ken Thomases
On Dec 17, 2014, at 11:40 PM, Jerry Krinock wrote: > • It would be *really* nice if -[NSImage setTemplate:YES] sent to a > monochrome image would cause it to reverse brightness depending on the > highlight color, the way it works with Status Item icons in the menu bar, or > even better yet, tu

Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?

2014-12-17 Thread Shane Stanley
On 18 Dec 2014, at 5:24 pm, Jerry Krinock wrote: > > With “Select None”, the segment and its image look the same whether it is > selected or not. It does not change the black lines in my image to blue, as > desired. The View menu in a Finder window doesn't show any blue. It basically reverses

Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?

2014-12-17 Thread Jerry Krinock
> On 2014 Dec 17, at 22:32, Ken Thomases wrote: > > Just to be clear, a template image should not be black and white. It should > be black and clear. Or, more accurately, the only thing that matters is the > alpha channel. I think my images are clear. The stupid blue background shows throu