Re: How do I debug weak_unregister_no_lock?

2014-01-14 Thread Kyle Sluder
On Jan 14, 2014, at 9:05 PM, Quincey Morris wrote: > >> On Jan 14, 2014, at 18:34 , Gideon King wrote: >> >> Although it is always happening at the same point in the code, I really have >> no idea where to look for debugging it. > > I have no answers, but a couple of observations. > > First

Re: How do I debug weak_unregister_no_lock?

2014-01-14 Thread Quincey Morris
On Jan 14, 2014, at 18:34 , Gideon King wrote: > Although it is always happening at the same point in the code, I really have > no idea where to look for debugging it. I have no answers, but a couple of observations. First, you seem to be crashing in the dealloc (or destructor, if it’s a C++

Re: UIPopoverController and UIToolbar interactions

2014-01-14 Thread Matt Neuburg
>> 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 >> UI

Re: Mixing UIDocument's NSUndoManager and -updateChangeCount:

2014-01-14 Thread Matt Neuburg
On Mon, 13 Jan 2014 16:21:46 +0100, Markus Spoettl said: >What I want is that iOS saves whenever the app is backgrounded. > >So the questions is: Can I safely call -updateChangeCount: when my app is >being >sent to the background alongside the automatic NSUndoManager change handling? I don't u

Re: How do I debug weak_unregister_no_lock?

2014-01-14 Thread Gideon King
I just had this problem come up again. It happens when I pop a view controller, so there are a whole bunch of things being tidied up behind the scenes. Although it is always happening at the same point in the code, I really have no idea where to look for debugging it. Any tips on debugging

Re: RSA and libcrypto

2014-01-14 Thread jonat...@mugginsoft.com
On 14 Jan 2014, at 20:44, Charles Srstka wrote: > On Jan 14, 2014, at 1:09 PM, Jens Alfke wrote: > >> On Jan 14, 2014, at 9:37 AM, Jean-Daniel Dupas >> wrote: >> >>> Just in case it was not mentioned in the thread, SecTransform supports RSA. >>> You can use SecEncryptTransformCreate() with

Re: Pushed nav controller not displaying?

2014-01-14 Thread Eric E. Dolecki
I got it... I named the view controller "Console" in the Main.storyboard. Now when I want to have it pushed I did this: UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; ViewController *viewController = [sb instantiateViewControllerWithIdentifier:@"Console"]; [[self naviga

Re: RSA and libcrypto

2014-01-14 Thread Charles Srstka
On Jan 14, 2014, at 1:09 PM, Jens Alfke wrote: > On Jan 14, 2014, at 9:37 AM, Jean-Daniel Dupas wrote: > >> Just in case it was not mentioned in the thread, SecTransform supports RSA. >> You can use SecEncryptTransformCreate() with an asymmetric key. > > Great! But there was a previous assert

Pushed nav controller not displaying?

2014-01-14 Thread Eric E. Dolecki
I need another brain on this one. I have an iOS iPhone ARC app (only supports landscape in the General settings) that I've started that uses a Storyboard for a view controller that isn't the initial. In my app delegate I'm doing this: - (BOOL)application:(UIApplication *)application didFinishLau

Re: UILabel's sizeToFit - only on re-used cells

2014-01-14 Thread Quincey Morris
On Jan 14, 2014, at 11:20 , Torsten Curdt wrote: >MyCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MyCell"]; > > I then setup the cell > >cell.myLabel.text = @"test"; >cell.myLabel.textColor = [UIColor blackColor]; > > and resize the label to use the proper space for t

UILabel's sizeToFit - only on re-used cells

2014-01-14 Thread Torsten Curdt
I am seeing a weird behavior and I have hard time tracking down what's going on. Any suggestion on how to pinpoint the problem would be great. I am running out of ideas. I have UITableView where I dequeue the cells. MyCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MyCell"]; I th

Re: RSA and libcrypto

2014-01-14 Thread Jens Alfke
On Jan 14, 2014, at 9:37 AM, Jean-Daniel Dupas wrote: > Just in case it was not mentioned in the thread, SecTransform supports RSA. > You can use SecEncryptTransformCreate() with an asymmetric key. Great! But there was a previous assertion in this thread (by whom?) that the Apple docs say Sec

Re: RSA and libcrypto

2014-01-14 Thread Jean-Daniel Dupas
Le 14 janv. 2014 à 18:20, Jens Alfke a écrit : > > On Jan 14, 2014, at 1:19 AM, jonat...@mugginsoft.com wrote: > >> As Jens comments the security APIs are ridiculously opaque. >> Perhaps this is seen as a necessity in the serious world of crypto - perhaps >> it is just hard to avoid. However

Re: RSA and libcrypto

2014-01-14 Thread Jens Alfke
On Jan 14, 2014, at 1:19 AM, jonat...@mugginsoft.com wrote: > As Jens comments the security APIs are ridiculously opaque. > Perhaps this is seen as a necessity in the serious world of crypto - perhaps > it is just hard to avoid. However, it is a liability. Crypto is inevitably sort of complex,

Re: UIPopoverController and UIToolbar interactions

2014-01-14 Thread Gordon Apple
If you can spare the real estate, I would suggest adding your own subview-bar and put the popover buttons there. That¹s what I did. Or just overlay the buttons on your main view. > I have an iPad app with a UIToolbar across the top, and a couple of > UIPopoverControllers that come out of buttons

Re: RSA and libcrypto

2014-01-14 Thread jonat...@mugginsoft.com
On 14 Jan 2014, at 09:42, Charles Srstka wrote: > On Jan 14, 2014, at 3:19 AM, jonat...@mugginsoft.com wrote: > >> The only problem with retaining it is the extra complexity involved in >> integrating the static library build into the project and upgrading the >> source. > > One trick that c

Re: RSA and libcrypto

2014-01-14 Thread Charles Srstka
On Jan 14, 2014, at 3:19 AM, jonat...@mugginsoft.com wrote: > The only problem with retaining it is the extra complexity involved in > integrating the static library build into the project and upgrading the > source. One trick that can help is that OpenSSL is in MacPorts, so you can just set up

Re: Fixed format report document building

2014-01-14 Thread jonat...@mugginsoft.com
On 9 Jan 2014, at 22:03, Kyle Sluder wrote: > On Thu, Jan 9, 2014, at 01:54 PM, jonat...@mugginsoft.com wrote: >> >> >> What is the best approach for generating fixed format report documents in >> Cocoa? >> >> My thoughts: > > This is exactly AppKit's document generation API. It's how TextEd

Re: RSA and libcrypto

2014-01-14 Thread jonat...@mugginsoft.com
On 13 Jan 2014, at 22:09, Kyle Sluder wrote: > On Jan 13, 2014, at 1:57 PM, Jens Alfke wrote: >> >> >>> On Jan 13, 2014, at 1:40 PM, Kyle Sluder wrote: >>> >>> Unfortunately, SecKey{Encrypt,Decrypt} are not available on OS X. >> >> Oh crap, is this thread about OS X? I misremembered it as b