Re: [MORE} startAccessingSecurityScopedResource

2014-01-22 Thread Mike Abdullah
On 22 Jan 2014, at 02:46, koko k...@highrolls.net wrote: I believe I should use contentsOfDirectoryAtURL and then create a security-scoped bookmark for each file I am interested in and in this manner I will be able to read the files across launches of the app. On Jan 21, 2014, at 7:26 PM,

Design by contract and cocoa

2014-01-22 Thread jonat...@mugginsoft.com
Does anyone regularly use design by contract in their Cocoa apps? At present I often make use of NSAssert() et al to validate method inputs as a passing nod to design by contract, but that’s it. I know there are some macros available, http://www.roard.com/contracts/, but I haven’t

Re: [MORE} startAccessingSecurityScopedResource

2014-01-22 Thread koko
Mike, thanks for the observations … I now understand the process and yes you could first generate more bookmarks for each of the files inside the directory, but that seems a weird thing to do” , I had not realized that and I assume this to be true, once -startAccessingSecurityScopedResource is

Re: Design by contract and cocoa

2014-01-22 Thread Jens Alfke
On Jan 22, 2014, at 8:03 AM, jonat...@mugginsoft.com wrote: I know there are some macros available, http://www.roard.com/contracts/, but I haven’t experimented further as yet Interesting. I like the idea of dynamically creating a subclass that wraps the methods to be checked, but I don't

Re: Design by contract and cocoa

2014-01-22 Thread jonat...@mugginsoft.com
On 22 Jan 2014, at 17:50, Herman Chan herman...@gmail.com wrote: this seems to be the modernized version of it: https://github.com/brynbellomy/ObjC-DesignByContract This is indeed a later implementation. It uses a metamacro approach as used in ReactiveCocoa. The code also has dependencies on

Priority MOC operations?

2014-01-22 Thread Rick Mann
There's no way to get prioritized -performBlock: calls on an NSManagedObjectContext, is there? I have some operations enqueued with -performBlock: that must be serialized, and others that would be best carried out as soon as the current block finishes, but before any other enqueued blocks. --

UITableViewCell highlight color in iOS 7 (Settings app)

2014-01-22 Thread Rick Mann
In my app, tapping on a UITableViewCell turns it gray. In the Settings app, it's blue. Is this just another instance of the Settings app using non-standard (and better-looking) UITableViews? -- Rick signature.asc Description: Message signed with OpenPGP using GPGMail

Re: UITableViewCell highlight color in iOS 7 (Settings app)

2014-01-22 Thread Nick Petrov
On Jan 23, 2014, at 2:54 AM, Rick Mann rm...@latencyzero.com wrote: In my app, tapping on a UITableViewCell turns it gray. In the Settings app, it's blue. Is this just another instance of the Settings app using non-standard (and better-looking) UITableViews? You can change it. Here is

Re: UITableViewCell highlight color in iOS 7 (Settings app)

2014-01-22 Thread Rick Mann
On Jan 22, 2014, at 17:19 , Nick Petrov nickpet@gmail.com wrote: On Jan 23, 2014, at 2:54 AM, Rick Mann rm...@latencyzero.com wrote: In my app, tapping on a UITableViewCell turns it gray. In the Settings app, it's blue. Is this just another instance of the Settings app using

Re: UITableViewCell highlight color in iOS 7 (Settings app)

2014-01-22 Thread Quincey Morris
On Jan 22, 2014, at 16:54 , Rick Mann rm...@latencyzero.com wrote: In my app, tapping on a UITableViewCell turns it gray. In the Settings app, it's blue. Is this just another instance of the Settings app using non-standard (and better-looking) UITableViews? Oddly, on my iPhone 4, it’s gray

More UITableViewCell color woes

2014-01-22 Thread Rick Mann
I have a static table view in a storyboard on iOS 7. They look correct in IB. One of the cells (the second) is a Basic cell, and when selected it draws in grey, and the text remains black. However, when not highlighted, the background color around the text is white, causing problems with the

Getting

2014-01-22 Thread Rick Mann
I'm getting *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], but I'm not getting the message like this that you typically get (there's no message indicating what went wrong): 'Invalid update: invalid number of rows in section 0. The number of rows contained in an

Getting Assertion failure in -[UITableView _endCellAnimationsWithContext:]

2014-01-22 Thread Rick Mann
(Let's try this with a subject!) I'm getting *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], but I'm not getting the message like this that you typically get (there's no message indicating what went wrong): 'Invalid update: invalid number of rows in section 0. The