Mixing UIDocument's NSUndoManager and -updateChangeCount:

2014-01-13 Thread Markus Spoettl
Hi, I have an app that uses UIDocument and NSUndoManager. That way the system picks up changes to the data and knows when to auto-save. Some parts of the model are not using the undo manager (mostly settings where undo makes no sense or isn't wanted). Still that data is stored alongside

Re: Mixing UIDocument's NSUndoManager and -updateChangeCount:

2014-01-13 Thread Mike Abdullah
On 13 Jan 2014, at 15:21, Markus Spoettl ms_li...@shiftoption.com wrote: Hi, I have an app that uses UIDocument and NSUndoManager. That way the system picks up changes to the data and knows when to auto-save. Some parts of the model are not using the undo manager (mostly settings where

Re: Mixing UIDocument's NSUndoManager and -updateChangeCount:

2014-01-13 Thread Kyle Sluder
On Mon, Jan 13, 2014, at 07:21 AM, Markus Spoettl wrote: Hi, I have an app that uses UIDocument and NSUndoManager. That way the system picks up changes to the data and knows when to auto-save. Some parts of the model are not using the undo manager (mostly settings where undo

Re: iTune Plist changes from NSUserdefaults

2014-01-13 Thread Jens Alfke
On Jan 12, 2014, at 2:44 AM, Madhavi Gundeti madhavi.gundet...@gmail.com wrote: And I took Sampling process in Activity monitor. Below is the output. The part of the sample output that you pasted in isn’t useful for looking at a hang. The useful part is the thread stacks at the start of the

NSTableView, NSArrayController predicate, change data exception

2014-01-13 Thread Trygve Inda
I have an NSTableView backed by an NSArrayController. I call setFilterPredicate on the NSArrayController to set a predicate of rating == 2 This does filter the table to show only those entries where rating is 2. The rating column is a Level Indicator and set to show star ratings in IB. It is

Re: RSA and libcrypto

2014-01-13 Thread Jens Alfke
On Jan 12, 2014, at 2:11 PM, Charles Srstka cocoa...@charlessoft.com wrote: On Jan 12, 2014, at 4:00 PM, jonat...@mugginsoft.com wrote: I am trying to wean my app off libcypto via security.framework and common crypto. My last dependency is on RSA. Is there an alternative non openssl

Re: Mixing UIDocument's NSUndoManager and -updateChangeCount:

2014-01-13 Thread Markus Spoettl
On 1/13/14 5:29 PM, Kyle Sluder wrote: This does not strike me as a good idea. -updateChangeCount: is a counter; adding a place that increments the counter without having a corresponding decrement sounds like an invitation for state corruption, particularly in the presence of framework code that

Re: NSTableView, NSArrayController predicate, change data exception

2014-01-13 Thread Trygve Inda
I have an NSTableView backed by an NSArrayController. I call setFilterPredicate on the NSArrayController to set a predicate of rating == 2 This does filter the table to show only those entries where rating is 2. The rating column is a Level Indicator and set to show star ratings in IB. It

Re: Mixing UIDocument's NSUndoManager and -updateChangeCount:

2014-01-13 Thread Kyle Sluder
On Jan 13, 2014, at 9:24 AM, Markus Spoettl ms_li...@shiftoption.com wrote: On 1/13/14 5:29 PM, Kyle Sluder wrote: This does not strike me as a good idea. -updateChangeCount: is a counter; adding a place that increments the counter without having a corresponding decrement sounds like an

Re: Mixing UIDocument's NSUndoManager and -updateChangeCount:

2014-01-13 Thread Mike Abdullah
On 13 Jan 2014, at 16:29, Kyle Sluder k...@ksluder.com wrote: On Mon, Jan 13, 2014, at 07:21 AM, Markus Spoettl wrote: Hi, I have an app that uses UIDocument and NSUndoManager. That way the system picks up changes to the data and knows when to auto-save. Some parts of the model

Re: Mixing UIDocument's NSUndoManager and -updateChangeCount:

2014-01-13 Thread Kyle Sluder
On Mon, Jan 13, 2014, at 12:08 PM, Mike Abdullah wrote: This does not strike me as a good idea. -updateChangeCount: is a counter; adding a place that increments the counter without having a corresponding decrement sounds like an invitation for state corruption, particularly in the presence

Re: RSA and libcrypto

2014-01-13 Thread Charles Srstka
On Jan 13, 2014, at 11:11 AM, Jens Alfke j...@mooseyard.com wrote: AFAIK, there is not. You will have to statically link lib crypto. No, you can use SecKeyEncrypt / SecKeyDecrypt with RSA keys. You just have to have the keys stored in the Keychain Really? I'll have to give this a try

Re: Mixing UIDocument's NSUndoManager and -updateChangeCount:

2014-01-13 Thread Markus Spoettl
On 1/13/14 9:13 PM, Kyle Sluder wrote: But it's just generally a bad practice to violate the framework's stated assumptions. -updateChangeCount: manages a change counter, not a force saving flag. There's a very clear way to implement a force saving flag that fits within the framework design. The

Re: RSA and libcrypto

2014-01-13 Thread Jens Alfke
On Jan 13, 2014, at 12:26 PM, Charles Srstka cocoa...@charlessoft.com wrote: Really? I'll have to give this a try sometime. If this is the case, someone should probably file a Radar against the documentation, since it specifically states that the security transforms API only supports

Re: RSA and libcrypto

2014-01-13 Thread Kyle Sluder
On Mon, Jan 13, 2014, at 01:14 PM, Jens Alfke wrote: On Jan 13, 2014, at 12:26 PM, Charles Srstka cocoa...@charlessoft.com wrote: Really? I'll have to give this a try sometime. If this is the case, someone should probably file a Radar against the documentation, since it specifically

Re: RSA and libcrypto

2014-01-13 Thread Jens Alfke
On Jan 13, 2014, at 1:40 PM, Kyle Sluder k...@ksluder.com wrote: Unfortunately, SecKey{Encrypt,Decrypt} are not available on OS X. Oh crap, is this thread about OS X? I misremembered it as being iOS. Sorry! rant Yeah, Apple’s security/crypto APIs are completely f**ed up and have been for

Re: RSA and libcrypto

2014-01-13 Thread Kyle Sluder
On Jan 13, 2014, at 1:57 PM, Jens Alfke j...@mooseyard.com wrote: On Jan 13, 2014, at 1:40 PM, Kyle Sluder k...@ksluder.com wrote: Unfortunately, SecKey{Encrypt,Decrypt} are not available on OS X. Oh crap, is this thread about OS X? I misremembered it as being iOS. Sorry! Who knows?

UIPopoverController and UIToolbar interactions

2014-01-13 Thread Rick Mann
I have an iPad app with a UIToolbar across the top, and a couple of UIPopoverControllers that come out of buttons in that toolbar. One of the things I notice is that when a popover is open, you can still click on other buttons in the UIToolbar, and it doesn't go through the normal

Re: UIPopoverController and UIToolbar interactions

2014-01-13 Thread Sixten Otto
I tend to agree that it's problematic, but it is deliberate. From the documentation: Discussion When presenting the popover, this method adds the toolbar that owns the button to the popover’s list of passthrough views. Thus, taps in the toolbar result in the action methods of the corresponding

Re: UIPopoverController and UIToolbar interactions

2014-01-13 Thread Rick Mann
Thanks, Sixten. Popovers really are one of the worst things in iOS. They're not proper view controllers, and there's terrible inconsistency and limitations about controlling when they're displayed (and more importantly, dismissed). On Jan 13, 2014, at 14:28 , Sixten Otto hims...@sfko.com

Re: UIPopoverController and UIToolbar interactions

2014-01-13 Thread Gideon King
…or set your passthroughViews to nil *after* your presentPopover call and have it just dismiss the popover as normal when you tap something on the toolbar. Regards Gideon On 14 Jan 2014, at 8:28 am, Sixten Otto hims...@sfko.com wrote: I tend to agree that it's problematic, but it is

Re: UIPopoverController and UIToolbar interactions

2014-01-13 Thread Sixten Otto
Yeah, I mentioned that in my last paragraph. On Mon, Jan 13, 2014 at 3:33 PM, Gideon King gid...@novamind.com wrote: …or set your passthroughViews to nil *after* your presentPopover call and have it just dismiss the popover as normal when you tap something on the toolbar. Regards Gideon

Re: RSA and libcrypto

2014-01-13 Thread Charles Srstka
On Jan 13, 2014, at 4:09 PM, Kyle Sluder k...@ksluder.com wrote: On Jan 13, 2014, at 1:57 PM, Jens Alfke j...@mooseyard.com wrote: On Jan 13, 2014, at 1:40 PM, Kyle Sluder k...@ksluder.com wrote: Unfortunately, SecKey{Encrypt,Decrypt} are not available on OS X. Oh crap, is this thread