|
WindowController
Is there a corresponding line of code that sets self.prefController to nil when the window is closed? As I understand it, the property will only be set to nil if it is declared as weak, which is most
Is there a corresponding line of code that sets self.prefController to nil when the window is closed? As I understand it, the property will only be set to nil if it is declared as weak, which is most
|
By
Jack Brindle
· #71
·
|
|
Binding to object returned by custom getter
I think I would have a property that holds the velocity that is calculated in response to the keyPathsForValues… method being fired. Then just bind to that property. Make sure that everything that is
I think I would have a property that holds the velocity that is calculated in response to the keyPathsForValues… method being fired. Then just bind to that property. Make sure that everything that is
|
By
Jack Brindle
· #113
·
|
|
Installing a Launchd.plist
SMJobBless is a royal pain to get going. By far the easiest (and perhaps coolest) way of running a privileged app (usually for an installer) is to do it through AppleScript. Something like: “do shell
SMJobBless is a royal pain to get going. By far the easiest (and perhaps coolest) way of running a privileged app (usually for an installer) is to do it through AppleScript. Something like: “do shell
|
By
Jack Brindle
· #119
·
|
|
Installing a Launchd.plist
That’s one of the cool things about it. Nothing special about the lower level (main) app. It is simply a standard app. You can either do the installation yourself there, have the top level installer r
That’s one of the cool things about it. Nothing special about the lower level (main) app. It is simply a standard app. You can either do the installation yourself there, have the top level installer r
|
By
Jack Brindle
· #124
·
|
|
Installing a Launchd.plist
John; I suspect you are putting more into the scripting idea than is really needed. The only thing I use AppleScript for is to launch the installer application. That (standard Mac) application is writ
John; I suspect you are putting more into the scripting idea than is really needed. The only thing I use AppleScript for is to launch the installer application. That (standard Mac) application is writ
|
By
Jack Brindle
· #126
·
|
|
"broken pipe", but not when debugging...
A broken pipe usually means that one end of the connection has been closed for one reason or another. You don’t show the actual read and write code, but that is most likely where the problem occurs. B
A broken pipe usually means that one end of the connection has been closed for one reason or another. You don’t show the actual read and write code, but that is most likely where the problem occurs. B
|
By
Jack Brindle
· #168
·
|
|
"broken pipe", but not when debugging...
Jens; Thank you for the opportunity to expound on this. See below… A look at the discussion for NSFileHandle’s writeData: method provides the following: "This method raises an exception if the file de
Jens; Thank you for the opportunity to expound on this. See below… A look at the discussion for NSFileHandle’s writeData: method provides the following: "This method raises an exception if the file de
|
By
Jack Brindle
· #177
·
|
|
How to store C Arrays as a Property or iVar?
Can you publish the actual declarations for myArray and mArray? The ones you show aren’t quite legal and will be rejected by C compilers. There isn’t that much different from regular C. In your code,
Can you publish the actual declarations for myArray and mArray? The ones you show aren’t quite legal and will be rejected by C compilers. There isn’t that much different from regular C. In your code,
|
By
Jack Brindle
· #189
·
|
|
Understanding NSNetService and peer-to-peer streaming
One suggestion for testing on a single machine is to use VMware Fusion to create multiple macOS VMs. You will want a system with decent speed, but the environment should do exactly what you need with
One suggestion for testing on a single machine is to use VMware Fusion to create multiple macOS VMs. You will want a system with decent speed, but the environment should do exactly what you need with
|
By
Jack Brindle
· #193
·
|
|
isFlipped??
It is actually the property flipped on NSView. isFlipped is the getter function. The doc says: "If you want your view to use a flipped coordinate system, override this property and return YES.” I use
It is actually the property flipped on NSView. isFlipped is the getter function. The doc says: "If you want your view to use a flipped coordinate system, override this property and return YES.” I use
|
By
Jack Brindle
· #298
·
|
|
How to Install Mac OS X 10.11.6
Alex, that won’t work. They only will upgrade within a major version. 10.11.6 combo will only upgrade 10.11 versions, not 10.10. The 10.11.6 installer actually is on the app store. There is some metho
Alex, that won’t work. They only will upgrade within a major version. 10.11.6 combo will only upgrade 10.11 versions, not 10.10. The 10.11.6 installer actually is on the app store. There is some metho
|
By
Jack Brindle
· #425
·
|
|
How to Install Mac OS X 10.11.6
In the applications folder. If you think about it, it is an app, right? By the way, the version from the app store is the latest (10.11.6). No need to apply further combo updates. - Jack
In the applications folder. If you think about it, it is an app, right? By the way, the version from the app store is the latest (10.11.6). No need to apply further combo updates. - Jack
|
By
Jack Brindle
· #430
·
|
|
using select() without blocking the runloop
If file handlers were thread-specific you would not be able to read files on other threads. They are process-specific, not thread-specific. At its core, select is very much synchronous. This haunted t
If file handlers were thread-specific you would not be able to read files on other threads. They are process-specific, not thread-specific. At its core, select is very much synchronous. This haunted t
|
By
Jack Brindle
· #435
·
|
|
Crash with "illegal opcode" - how to debug this issue?
Graham - did you ever get a response? This looks to me like you are doing an animation which has completed and is trying to call back to your completion block. For some reason the completion block is
Graham - did you ever get a response? This looks to me like you are doing an animation which has completed and is trying to call back to your completion block. For some reason the completion block is
|
By
Jack Brindle
· #582
·
|
|
Can NSView and NSImageView respond to Mouse Clicks?
NSView inherits from NSResponder. That gives NSView access to mouseDown, mouseUp and a whole host of other important calls. What this really means is that you can implement - (void)mouseDown:(NSEvent
NSView inherits from NSResponder. That gives NSView access to mouseDown, mouseUp and a whole host of other important calls. What this really means is that you can implement - (void)mouseDown:(NSEvent
|
By
Jack Brindle
· #735
·
|
|
Updating to Xcode 10
John; It’s usually a good thing to read the release notes for each version of Xcode. The Xcode 10 release notes directly mention the issue you are facing: Building with libstdc++ was deprecated with X
John; It’s usually a good thing to read the release notes for each version of Xcode. The Xcode 10 release notes directly mention the issue you are facing: Building with libstdc++ was deprecated with X
|
By
Jack Brindle
· #740
·
|
|
find standard about panel
The About window has no name - the title is blank. it would seem that a more interesting way to do the would be to use the [NSWindow windowNumberWithOptions:] method, which does return an array of win
The About window has no name - the title is blank. it would seem that a more interesting way to do the would be to use the [NSWindow windowNumberWithOptions:] method, which does return an array of win
|
By
Jack Brindle
· #887
·
|
|
Some advice requested on debugging a difficult problem. iOS.
Alex; I think you may be going down the wrong path on this one. It sounds more like a second instance is being created somehow. Did you guard the init method so that no one can create a second one, or
Alex; I think you may be going down the wrong path on this one. It sounds more like a second instance is being created somehow. Did you guard the init method so that no one can create a second one, or
|
By
Jack Brindle
· #897
·
|
|
Puzzle with Hardened Runtime entitlement
Hardened Runtime is not currently a requirement for Notarization, but it appears that you have to submit the app using the command-line tool for notarization to happen properly. All my attempts at sub
Hardened Runtime is not currently a requirement for Notarization, but it appears that you have to submit the app using the command-line tool for notarization to happen properly. All my attempts at sub
|
By
Jack Brindle
· #1054
·
|
|
Puzzle with Hardened Runtime entitlement
Have you checked the Notarization report? That will tell you exactly why it failed. Jack
Have you checked the Notarization report? That will tell you exactly why it failed. Jack
|
By
Jack Brindle
· #1058
·
|