Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.

2013-07-26 Thread Paul Scott
Why launch sqlite command? Why not link directly to the sqlite library and access the data base directly? Further, preference files in ~/Library/Preferences are typically XML key-value plist files. Why not use [NSUserDefaults standardUserDefaults]? Paul On Jul 23, 2013, at 10:04 AM, Public

RE: Constraining a mouse cursor to a rect / window

2013-07-26 Thread Jorgen Tjerno
Thanks for your responses, Seth Ken. Ken: I don't think we can use LGPL code in SDL2, as the license for v2 is MIT. Have you measured to see if using CGAssociateMouseAndMouseCursorPosition and CGWarpMouseCursorPosition incurs any latency on cursor movements? Our customers are very ..

Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.

2013-07-26 Thread Paul Scott
Why launch sqlite command? Why not link directly to the sqlite library and access the data base directly? Further, preference files in ~/Library/Preferences are typically XML key-value plist files. Why not use [NSUserDefaults standardUserDefaults]? Paul On Jul 23, 2013, at 10:04 AM,

NSTableView - differences in click or arrow selection

2013-07-26 Thread Martin Hewitson
Dear list, This is a strange one. I have a table view which lists a set of themes. When a theme is selected a textview in another part of the app has its font and colors updated. This all works nicely except for one strange 'feature'. When selecting a theme with the arrow keys (moving up or

Re: Apple Developer update phishing

2013-07-26 Thread Bill Cheeseman
I received one just this morning. It was written in French, but I only speak English here in Vermont, so I spotted it for what it was right off. On Jul 25, 2013, at 11:47 PM, Scott Ribe scott_r...@elevated-dev.com wrote: Stay alert folks. I saw reports that scammers are already sending out

Re: Leak when drawing too fast

2013-07-26 Thread Uli Kusterer
On Jul 25, 2013, at 20:26, Andreas Mayer andr...@harmless.de wrote: Am 25.07.2013 um 19:36 schrieb Uli Kusterer witness.of.teacht...@gmx.net: Have you considered using a display link callback instead of a timer? Yes. Moving to the display link callback was when I noticed the issue in the

Developer.apple.com repair status

2013-07-26 Thread Alex Zavatone
https://developer.apple.com/support/system-status/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Re: Observing Time

2013-07-26 Thread Ken Thomases
On Jul 25, 2013, at 11:37 PM, dangerwillrobinsondan...@gmail.com wrote: On Jul 26, 2013, at 12:09 PM, Ken Thomases k...@codeweavers.com wrote: Also, the above code doesn't adjust the timer to fire on the second as Rick suggested. You're asking it to fire every so many seconds

Re: Observing Time

2013-07-26 Thread Scott Ribe
On Jul 26, 2013, at 7:06 AM, Ken Thomases k...@codeweavers.com wrote: On Jul 25, 2013, at 11:37 PM, dangerwillrobinsondan...@gmail.com wrote: On Jul 26, 2013, at 12:09 PM, Ken Thomases k...@codeweavers.com wrote: Also, the above code doesn't adjust the timer to fire on the second as Rick

Re: Observing Time

2013-07-26 Thread Steve Sisak
At 7:36 AM -0600 7/26/13, Scott Ribe wrote: On Jul 26, 2013, at 7:06 AM, Ken Thomases k...@codeweavers.com wrote: On Jul 25, 2013, at 11:37 PM, dangerwillrobinsondan...@gmail.com wrote: On Jul 26, 2013, at 12:09 PM, Ken Thomases k...@codeweavers.com wrote: Also, the above code doesn't

Re: Observing Time

2013-07-26 Thread dangerwillrobinsondanger
On Jul 26, 2013, at 10:06 PM, Ken Thomases k...@codeweavers.com wrote: On Jul 25, 2013, at 11:37 PM, dangerwillrobinsondan...@gmail.com wrote: On Jul 26, 2013, at 12:09 PM, Ken Thomases k...@codeweavers.com wrote: Also, the above code doesn't adjust the timer to fire on the second as Rick

Re: Observing Time

2013-07-26 Thread dangerwillrobinsondanger
On Jul 26, 2013, at 10:36 PM, Scott Ribe scott_r...@elevated-dev.com wrote: On Jul 26, 2013, at 7:06 AM, Ken Thomases k...@codeweavers.com wrote: On Jul 25, 2013, at 11:37 PM, dangerwillrobinsondan...@gmail.com wrote: On Jul 26, 2013, at 12:09 PM, Ken Thomases k...@codeweavers.com

Re: Observing Time

2013-07-26 Thread Uli Kusterer
On Jul 26, 2013, at 4:22 PM, dangerwillrobinsondan...@gmail.com wrote: On Jul 26, 2013, at 10:36 PM, Scott Ribe scott_r...@elevated-dev.com wrote: On Jul 26, 2013, at 7:06 AM, Ken Thomases k...@codeweavers.com wrote: On Jul 25, 2013, at 11:37 PM, dangerwillrobinsondan...@gmail.com

Re: Leak when drawing too fast

2013-07-26 Thread Kyle Sluder
On Fri, Jul 26, 2013, at 03:41 AM, Uli Kusterer wrote: On Jul 25, 2013, at 20:26, Andreas Mayer andr...@harmless.de wrote: Am 25.07.2013 um 19:36 schrieb Uli Kusterer witness.of.teacht...@gmx.net: Have you considered using a display link callback instead of a timer? Yes. Moving to the

Re: How to make text view treat colon as word boundary

2013-07-26 Thread Kyle Sluder
On Thu, Jul 25, 2013, at 10:17 PM, Shane Stanley wrote: I have a text view that's used for editing code, and I want the user to be able to double-click within foo:fie and have only foo or fie selected. I overrode mouseDown: and mouseDragged: and thought I was home free -- but I now realise

Re: Leak when drawing too fast

2013-07-26 Thread Uli Kusterer
On Jul 26, 2013, at 5:11 PM, Kyle Sluder k...@ksluder.com wrote: On Fri, Jul 26, 2013, at 03:41 AM, Uli Kusterer wrote: On Jul 25, 2013, at 20:26, Andreas Mayer andr...@harmless.de wrote: Am 25.07.2013 um 19:36 schrieb Uli Kusterer witness.of.teacht...@gmx.net: Have you considered using a

Re: Observing Time

2013-07-26 Thread Scott Ribe
On Jul 26, 2013, at 8:13 AM, Steve Sisak sgs-li...@codewell.com wrote: It's worth noting that's very energy inefficient. Once the WWDC sessions are back on line, watch the energy efficiency sessions to see what's happening with timers in Mavericks. Yes. The only place I've deployed

Re: Observing Time

2013-07-26 Thread dangerwillrobinsondanger
On 2013/07/27, at 0:26, Scott Ribe scott_r...@elevated-dev.com wrote: On Jul 26, 2013, at 8:13 AM, Steve Sisak sgs-li...@codewell.com wrote: It's worth noting that's very energy inefficient. Once the WWDC sessions are back on line, watch the energy efficiency sessions to see what's

Re: Observing Time

2013-07-26 Thread Kyle Sluder
On Jul 26, 2013, at 8:36 AM, dangerwillrobinsondan...@gmail.com wrote: On 2013/07/27, at 0:26, Scott Ribe scott_r...@elevated-dev.com wrote: On Jul 26, 2013, at 8:13 AM, Steve Sisak sgs-li...@codewell.com wrote: It's worth noting that's very energy inefficient. Once the WWDC

Re: Observing Time

2013-07-26 Thread Steve Sisak
At 12:36 AM +0900 7/27/13, dangerwillrobinsondan...@gmail.com wrote: On 2013/07/27, at 0:26, Scott Ribe scott_r...@elevated-dev.com wrote: On Jul 26, 2013, at 8:13 AM, Steve Sisak sgs-li...@codewell.com wrote: It's worth noting that's very energy inefficient. Once the WWDC sessions are

Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.

2013-07-26 Thread Jens Alfke
On Jul 23, 2013, at 12:10 PM, Paul Scott psc...@skycoast.us wrote: Why launch sqlite command? Why not link directly to the sqlite library and access the data base directly? +1. You can also use the open-source FMDB library, a friendly Objective-C wrapper around SQLite. I've never worked

Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.

2013-07-26 Thread Scott Ribe
On Jul 26, 2013, at 1:36 PM, Jens Alfke j...@mooseyard.com wrote: I've never worked with sandboxing, but I would guess that a sandboxed app can't access arbitrary files in ~/Library/Preferences, but instead has to go through NSUserDefaults. Don't know about iOS, but at least on OS X you can

NSUserDefaults deeply nested subtle mountain lion difference

2013-07-26 Thread Keith Knauber
From Apple Docs: Values returned from NSUserDefaults are immutable, even if you set a mutable object as the value. For example, if you set a mutable string as the value for MyStringDefault, the string you later retrieve usingstringForKey: will be immutable. The Apple docs have always said

Re: How to make text view treat colon as word boundary

2013-07-26 Thread Shane Stanley
On 27/07/2013, at 1:15 AM, Kyle Sluder k...@ksluder.com wrote: Subclass NSTextView and override -selectionRangeForProposedRange:granularity:. That should take care of both mouse- and keyboard-based selection. Thanks. I wasn't sure that would work, given the docs say of it: These mechanisms

Re: How to make text view treat colon as word boundary

2013-07-26 Thread Shane Stanley
On 27/07/2013, at 1:15 AM, Kyle Sluder k...@ksluder.com wrote: Subclass NSTextView and override -selectionRangeForProposedRange:granularity:. That should take care of both mouse- and keyboard-based selection. No luck with completion: overriding -selectionRangeForProposedRange:granularity:

Dev site back up

2013-07-26 Thread Rick Mann
At least parts are, including the device portal. -- Rick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com

MODERATOR: End of Thread (was Re: Apple Developer Update)

2013-07-26 Thread Chris Hanson
Sorry, but this is off-topic for the cocoa-dev list. Please keep discussion here to technical topics related to Cocoa development. To provide feedback to Developer Support, visit the contact page at https://developer.apple.com/contact/. Thanks. -- Chris, cocoa-dev co-moderator

Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.

2013-07-26 Thread Public
Thanks Scott and Jens for sharing your thoughts. I didn't set up entitlements (yet), but when launched from within Xcode, my (non-sandboxed Cocoa) app was able to read and clear ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2 created by system. However, when launched from

Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.

2013-07-26 Thread Scott Ribe
On Jul 26, 2013, at 9:35 PM, Public mailbox20040...@gmail.com wrote: This experience has definitely piqued my curiosity about the difference in access rights of an app launched from within Xcode. I would expect difference in app behavior for an iOS app launched on device versus simulator,

Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.

2013-07-26 Thread Scott Ribe
On Jul 26, 2013, at 9:35 PM, Public mailbox20040...@gmail.com wrote: Thanks Scott and Jens for sharing your thoughts. I didn't set up entitlements (yet), but when launched from within Xcode, my (non-sandboxed Cocoa) app was able to read and clear