app icon for Launchpad

2014-06-16 Thread Roland King
My OSX app has an icon. It shows in the dock when active, it shows on Alt-Tab, it shows in the Applications folder, however in Launchpad I get the generic OSX Application Icon. I'm using Images.xcassets for my icons (it's a fairly new project). What do I need to have for Launchpad to show the

Re: Running a C compiler from within an app sandbox

2014-06-16 Thread Maxthon Chan
It is not the problem that they are not signed, but the problem that the fork(2) syscall is prevented from working in sandbox. Using the compiler as a library eliminated all the fork(2) calls. On Jun 17, 2014, at 9:33, SevenBits wrote: > On Jun 16, 2014, at 9:25 PM, Maxthon Chan wrote: > >>

Re: Running a C compiler from within an app sandbox

2014-06-16 Thread SevenBits
On Jun 16, 2014, at 9:25 PM, Maxthon Chan wrote: > You are not allowed to run unsigned code from within the app sandbox. Are the command line developer tools not signed? One would think that they would be signed with Apple’s certificate… I have been able to execute other executables in /bin an

Re: Running a C compiler from within an app sandbox

2014-06-16 Thread Maxthon Chan
You are not allowed to run unsigned code from within the app sandbox. There are some way to circumvent this, but it will require you to call the compiler as a library. Look into lib clang any you will find out how to link clang into your app, and compile within your own program code. On Jun 17,

Running a C compiler from within an app sandbox

2014-06-16 Thread SevenBits
Does anyone know how to do this? Whenever I try to invoke the clang compiler from within my sandboxed application, I get an error message saying that the compiler cannot be used from within the sandbox. I have permission to access all of the necessary files, so Powerbox denying access to one of

NSCoding vs NSSecureCoding

2014-06-16 Thread Sean McBride
Hi all, I was modernizing some of my code to support NSSecureCoding instead of just NSCoding and stumbled upon that fact that NSColor and NSImage support only NSCoding and not NSSecureCoding. Whereas NSURL, NSData, NSArray and countless others now support NSSecureCoding. Is it just that Apple

Re: initWithCoder: calling init in custom class

2014-06-16 Thread Scott Ribe
On Jun 16, 2014, at 4:24 PM, Trygve Inda wrote: > I guess the only way to prevent this is to check to see if > > [coder decodeObjectForKey:kValueAKey] > > returns non-nil before assigning it to valueA. Well, if you're not afraid of terse idioms and GCC extensions, you can avoid all the hooha

Re: initWithCoder: calling init in custom class

2014-06-16 Thread Trygve Inda
> On Jun 16, 2014, at 13:36 , Trygve Inda wrote: > >> In the later method, if the encoded object does not contain kValueCKey, the >> object created will still have the correct default value for valueC (9). > > It won’t, because you assigned nil to valueC *after* it’s set to the default. > > Per

Re: initWithCoder: calling init in custom class

2014-06-16 Thread Quincey Morris
On Jun 16, 2014, at 13:36 , Trygve Inda wrote: > In the later method, if the encoded object does not contain kValueCKey, the > object created will still have the correct default value for valueC (9). It won’t, because you assigned nil to valueC *after* it’s set to the default. Personally, I’d b

initWithCoder: calling init in custom class

2014-06-16 Thread Trygve Inda
I have a custom class: @interface MyClass : NSObject {} @property (nonatomic, retain) NSNumber* valueA; @property (nonatomic, retain) NSNumber* valueB; @property (nonatomic, retain) NSNumber* valueC; @end @implementation MyClass -(id)init { if (self = [super init]) { [self valueA

Re: title bar hit test?

2014-06-16 Thread Uli Kusterer
On 15 Jun 2014, at 13:27, Cosmin Apreutesei wrote: > I want to have edge snapping on my windows. Just for moving, or also for resizing? If only for moving, you don't need to do anything special to detect resizing. The OS will catch all resize clicks and not send them to your views, so just impl

Re: NSScrollView skips rendering pages

2014-06-16 Thread Uli Kusterer
On 16 Jun 2014, at 16:05, Sanjay Arora wrote: > My app uses NSScrollView to render a document having complex algorithms to > render images. The image rendering operation is quite cpu intensive and takes > time. > > When I scroll the document having multiple pages, using scroll pad or mouse >

Re: Autolayout Animation in UITableViewCell

2014-06-16 Thread Ken Thomases
On Jun 16, 2014, at 8:33 AM, Mazzaroth M. wrote: > I have two labels in a tableview cell, where the initial state is the > labels are 10 points from the margin(leading edge). I'd like to animate the > labels so that their margins animate to 70 points from the left margin. > The 02 project stores

NSScrollView skips rendering pages

2014-06-16 Thread Sanjay Arora
Hi, My app uses NSScrollView to render a document having complex algorithms to render images. The image rendering operation is quite cpu intensive and takes time. When I scroll the document having multiple pages, using scroll pad or mouse scroll, there happens some jerks in scrolling while re

Crash Dispatch queue: com.apple.CFURLCACHE_work_queue

2014-06-16 Thread parth r
Hi all, I am seeing crashes in my daemon when I use dispatch_async() in a for(;;) loop. Crashed Thread: 8 Dispatch queue: com.apple.CFURLCACHE_work_queue Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: EXC_I386_GPFLT *Background* My daemon processes url's and in one of the function

Autolayout Animation in UITableViewCell

2014-06-16 Thread Mazzaroth M.
Hi all, I'm attempting to do animation with programmatic autolayout inside a UITableViewCell (iOS 7). I think I'm pretty close, but the animation is not what I expect. I have two labels in a tableview cell, where the initial state is the labels are 10 points from the margin(leading edge). I'd lik

Re: CGDisplayIOServicePort deprecated in 10.9... IOServicePortFromCGDisplayID?

2014-06-16 Thread Trygve Inda
> What do you need the IOServicePort for? This GitHub comment provides the > outline of a solution for getting information about individual displays, which > would seem to be more verbose but safer than granting client apps access to > the window server's mach > ports: https://github.com/glfw/glfw