Re: Mac OS X - Inter-Application Communications

2015-03-03 Thread Kevin Meaney
On 3 Mar 2015, at 16:56, Kyle Sluder wrote: > > On Tue, Mar 3, 2015, at 05:50 AM, Dave wrote: >> I have the high level flow worked out now, but I’m not sure of what to >> use in order to Send Events between my Applications and whether I need to >> have one App (e.g. the Background App or another

Re: Mac OS X - AppDelegate applicationDidFinishLaunching

2015-03-03 Thread Lee Ann Rucker
On Mar 3, 2015, at 9:13 AM, Dave wrote: > Hi, > > A, ok, I was trying to avoid mentioning the Window Controller > specifically in the App Delegate, but I think this is warped and I will > change it so that it creates it there instead of referencing it in the NIB. > > Actually, awakeFromN

App extension killed by system (memory limit?)

2015-03-03 Thread Sal Conigliaro
Does anyone know what iOS 8 gives app extensions before it kills them? From what I can gather from the crash log, the extension gets about 12K pages before the system kills it with the 'per-process-limit' reason (if it's due to memory, it looks like it allocates about 50MB): Processes Name

Re: Mac OS X - AppDelegate applicationDidFinishLaunching

2015-03-03 Thread Kyle Sluder
On Tue, Mar 3, 2015, at 11:13 AM, Dave wrote: > Actually, awakeFromNIB is getting called twice for some reason, but I’m > sure the above will fix it. On OS X, -awakeFromNib is sent to File's Owner as well as to every object in the nib. So you're seeing it called twice: once because the window cont

Re: Create a NSURL as a way to validate urls - not working

2015-03-03 Thread Marco S Hyman
> class Utils: NSObject { > >class func isValidUrl(url: NSURL?) { > var lower = url?.scheme?.lowercaseString >return lower == "http" || lower == "https" > } > } > Sadly I'm getting and error in the return line that I can't interprete: > Cannot invoke == with argument list of ty

Re: Mac OS X - AppDelegate applicationDidFinishLaunching

2015-03-03 Thread Dave
Hi, A, ok, I was trying to avoid mentioning the Window Controller specifically in the App Delegate, but I think this is warped and I will change it so that it creates it there instead of referencing it in the NIB. Actually, awakeFromNIB is getting called twice for some reason, but I’m sure

Re: NSTextField highlight

2015-03-03 Thread edward taffel
in case anyone is following: from within a method defined on my subclass of NSTextField i sent: [[self cell] setBackgroundStyle:interface.isDark() ? NSBackgroundStyleDark : NSBackgroundStyleLight]; no apparent affect—text color, background color, or highlight. thanks again, ken, for mentioning

Re: Mac OS X - AppDelegate applicationDidFinishLaunching

2015-03-03 Thread Kyle Sluder
On Tue, Mar 3, 2015, at 10:41 AM, Dave wrote: > Hi, > > I’ve got a very simple test application with just one window and a few > controls. I’ve for some initialisation code in the AppDelegate > applicationDidFinishLaunching method. > > While tracking down a problem I’ve noticed that my WindowCont

Re: Mac OS X - Inter-Application Communications

2015-03-03 Thread Kyle Sluder
On Tue, Mar 3, 2015, at 05:50 AM, Dave wrote: > I have the high level flow worked out now, but I’m not sure of what to > use in order to Send Events between my Applications and whether I need to > have one App (e.g. the Background App or another dedicated > “DatabaseManager” Background App) solely

Mac OS X - AppDelegate applicationDidFinishLaunching

2015-03-03 Thread Dave
Hi, I’ve got a very simple test application with just one window and a few controls. I’ve for some initialisation code in the AppDelegate applicationDidFinishLaunching method. While tracking down a problem I’ve noticed that my WindowController class awakeFromNib method is getting called before

Re: Create a NSURL as a way to validate urls - not working

2015-03-03 Thread Juanjo Conti
Missing return type!!! Argh... caming from Python and Ruby doesn't help. Thanks!!! On Tue, Mar 3, 2015 at 12:27 PM, Roland King wrote: > > On 3 Mar 2015, at 22:42, Juanjo Conti wrote: > > Ok, first of all thanks all for the replies. > > I'm trying to solve it this an util class method: > > impo

In app purchase payment queue update - application crash

2015-03-03 Thread Sasikumar JP
Hi, I am having a problem with payment queue update during the application launch only on app store version. i could not reproduce the issue on development version. I have captured the crash report from Crashlytics Thread : Crashed: com.apple.main-thread 0 JPStoreKit 0x0

Re: Create a NSURL as a way to validate urls - not working

2015-03-03 Thread Roland King
> On 3 Mar 2015, at 22:42, Juanjo Conti wrote: > > Ok, first of all thanks all for the replies. > > I'm trying to solve it this an util class method: > > import Cocoa > > class Utils: NSObject { > >class func isValidUrl(url: NSURL?) { > var lower = url?.scheme?.lowercaseString >

Re: Create a NSURL as a way to validate urls - not working

2015-03-03 Thread Juanjo Conti
Ok, first of all thanks all for the replies. I'm trying to solve it this an util class method: import Cocoa class Utils: NSObject { class func isValidUrl(url: NSURL?) { var lower = url?.scheme?.lowercaseString return lower == "http" || lower == "https" } } Sadly I'm getting

Re: Muting keyboard of the application

2015-03-03 Thread Uli Kusterer
On 03 Mar 2015, at 09:55, claudio santoro wrote: > I'm developing an application for Yosemite OSX. > > How can I mute all the keyboard sounds like the ones retrieved when the > user presses the right cursor key inside an empty text box? I don't get a sound when I do that in any of my apps or a

Mac OS X - Inter-Application Communications

2015-03-03 Thread Dave
Target: Mac OS X - 10.9, 10.10 Hi All, I working on a Mac project that has a number of apps associated with the product I am developing. There is a background faceless app that monitors events and send messages to other Apps in the suite. The product needs a fairly large database of settings

Re: Create a NSURL as a way to validate urls - not working

2015-03-03 Thread Mike Abdullah
> On 3 Mar 2015, at 01:57, Jens Alfke wrote: > > >> On Mar 2, 2015, at 3:55 PM, Juanjo Conti > > wrote: >> >> Ok, I wanted to validate that the url is an absolute one. Is there >> something in Swift standard lib to do this? > > I typically check whether url.sc

Muting keyboard of the application

2015-03-03 Thread claudio santoro
Hi, I'm developing an application for Yosemite OSX. How can I mute all the keyboard sounds like the ones retrieved when the user presses the right cursor key inside an empty text box? Cheers Dodo ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)