|
Re: 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
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
|
By
Jack Brindle
·
#124
·
|
|
Re: Installing a Launchd.plist
For my own purposes, this looks like a good solution to a problem. I've never been much of a user of AppleScript, though, so I'm not sure how one creates such a lower-level app to be called from the
For my own purposes, this looks like a good solution to a problem. I've never been much of a user of AppleScript, though, so I'm not sure how one creates such a lower-level app to be called from the
|
By
John Brownie
·
#123
·
|
|
Re: How to Log Off from Game Center using the Simulator?
Yes, I’m only using one version of XCode, I’ve tried all the usual things, like restarting, cleaning, quitting etc.
Cheers
Dave
Yes, I’m only using one version of XCode, I’ve tried all the usual things, like restarting, cleaning, quitting etc.
Cheers
Dave
|
By
Dave
·
#122
·
|
|
Re: dispatch_async question
HI,
The thing is the code is being called Asynchronously anyway, I think the point was that this code assumes that that the delegate needs to run on the Main Thread, which in my mind is just as bad as
HI,
The thing is the code is being called Asynchronously anyway, I think the point was that this code assumes that that the delegate needs to run on the Main Thread, which in my mind is just as bad as
|
By
Dave
·
#121
·
|
|
Re: Installing a Launchd.plist
Jens,
Thanks for your thoughts...
It's not really a Daemon, it's an application that is persisted by Launchd.Yea my instinct said this wasn't right, but it just worked better in LaunchDaemons. Should
Jens,
Thanks for your thoughts...
It's not really a Daemon, it's an application that is persisted by Launchd.Yea my instinct said this wasn't right, but it just worked better in LaunchDaemons. Should
|
By
Sandor Szatmari
·
#120
·
|
|
Re: 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
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
|
By
Jack Brindle
·
#119
·
|
|
Re: Installing a Launchd.plist
LaunchDaemons is the wrong directory; that’s for system daemons that run outside of any user context. (I’m surprised you actually got this to work, because it’s difficult to present any UI from
LaunchDaemons is the wrong directory; that’s for system daemons that run outside of any user context. (I’m surprised you actually got this to work, because it’s difficult to present any UI from
|
By
Jens Alfke
·
#118
·
|
|
Installing a Launchd.plist
I have an application that presents a window to the user which floats above all other windows. It must be running at all times when any user is logged in.
I achieve this with a launchd.plist
I have an application that presents a window to the user which floats above all other windows. It must be running at all times when any user is logged in.
I achieve this with a launchd.plist
|
By
Sandor Szatmari
·
#117
·
|
|
Re: dispatch_async question
The "Main thread checker" in XC 9 beta will tell you if you're doing something off the main thread that you shouldn't. It's really useful.
The "Main thread checker" in XC 9 beta will tell you if you're doing something off the main thread that you shouldn't. It's really useful.
|
By
Sak Wathanasin
·
#116
·
|
|
Re: Binding to object returned by custom getter
This represents a truth about KVO compliance for some scenarios, but the problem in this case is one level more subtle. The binding is observing the *wrong* instance of the velocity object. The only
This represents a truth about KVO compliance for some scenarios, but the problem in this case is one level more subtle. The binding is observing the *wrong* instance of the velocity object. The only
|
By
Quincey Morris
·
#115
·
|
|
Re: Binding to object returned by custom getter
KVO observes a known object. If you return another one, then you need to remove the observer from your old object and add it to your new one.
KVO is going, “I’m looking at this thing.”
If the
KVO observes a known object. If you return another one, then you need to remove the observer from your old object and add it to your new one.
KVO is going, “I’m looking at this thing.”
If the
|
By
Alex Zavatone
·
#114
·
|
|
Re: 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
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
|
By
Jack Brindle
·
#113
·
|
|
Re: Binding to object returned by custom getter
Yes, that’s exactly the reason. By returning a new object from the getter, you are making the property non-KVO-compliant.
KVO is reference-based, not value-based. When you observe the key-path
Yes, that’s exactly the reason. By returning a new object from the getter, you are making the property non-KVO-compliant.
KVO is reference-based, not value-based. When you observe the key-path
|
By
Quincey Morris
·
#112
·
|
|
Re: dispatch_async question
The call you showed runs the block on the main thread. That aspect may be crucial. Does the code this is part of run on a different thread/queue?
Also, it can often be very useful to defer some code
The call you showed runs the block on the main thread. That aspect may be crucial. Does the code this is part of run on a different thread/queue?
Also, it can often be very useful to defer some code
|
By
Jens Alfke
·
#111
·
|
|
Binding to object returned by custom getter
Hi all,
I have a property "velocity" that returns a custom object representing a 2D vector. That vector object has properties "x" and "y". From time to time, the value of velocity to be displayed
Hi all,
I have a property "velocity" that returns a custom object representing a 2D vector. That vector object has properties "x" and "y". From time to time, the value of velocity to be displayed
|
By
Jonathan Taylor
·
#110
·
|
|
Re: dispatch_async question
I’m glad that Fritz chimed in here before I risked an answer.
My gut feeling was that, “well, even if it isn’t required, seeing the word ‘_async’ in the function clearly states to you that
I’m glad that Fritz chimed in here before I risked an answer.
My gut feeling was that, “well, even if it isn’t required, seeing the word ‘_async’ in the function clearly states to you that
|
By
Alex Zavatone
·
#109
·
|
|
Re: dispatch_async question
It's hard to understand because concurrency is the most difficult task in software engineering. (A debate on "hardest task" might be fun. Please let's not.) If the code you're looking at was
It's hard to understand because concurrency is the most difficult task in software engineering. (A debate on "hardest task" might be fun. Please let's not.) If the code you're looking at was
|
By
Fritz Anderson
·
#108
·
|
|
Re: How to Log Off from Game Center using the Simulator?
If you’re only using one Xcode, then you probably should do the regular things: quit Xcode, reboot, etc. I just tried that version and could scroll to the Game Center item in Settings. Also,
If you’re only using one Xcode, then you probably should do the regular things: quit Xcode, reboot, etc. I just tried that version and could scroll to the Game Center item in Settings. Also,
|
By
Gary L. Wade
·
#107
·
|
|
Re: How to Log Off from Game Center using the Simulator?
Hi,
I’m using XCode 8.3.3 is there a better/newer version available? I’m having all kind of issues with this version and wondered if worth updating?
All the Best
Dave
Hi,
I’m using XCode 8.3.3 is there a better/newer version available? I’m having all kind of issues with this version and wondered if worth updating?
All the Best
Dave
|
By
Dave
·
#106
·
|
|
Re: How to Log Off from Game Center using the Simulator?
It sounds like you’ve got an issue with Xcode and the Simulators. If you’ve been playing with beta Xcode and released Xcode at the same time, all sorts of weirdness can happen. Try quitting
It sounds like you’ve got an issue with Xcode and the Simulators. If you’ve been playing with beta Xcode and released Xcode at the same time, all sorts of weirdness can happen. Try quitting
|
By
Gary L. Wade
·
#105
·
|