Re: NSBox line with autolayout

2014-04-11 Thread Julian
I just resolved it by checking 'Autoresizes Subviews' on the NSBox itself in the nib. For some reason, that triggers the behavior I'm looking for in my situation. I'm not sure why it's not needed in other circumstances, though. On Fri, Apr 11, 2014 at 2:45 PM, Julian wrote: > Hmm yes. Doing som

Re: Exception going "uncaught" despite active @catch handler

2014-04-11 Thread Jens Alfke
On Apr 11, 2014, at 2:26 PM, Greg Parker wrote: > libdispatch has its own catch-and-halt exception handler here. It does not > allow exceptions to be thrown across its boundaries. The GCD reference says > "Your application must catch all exceptions before returning from a block > submitted to

Re: NSBox line with autolayout

2014-04-11 Thread Julian
Hmm yes. Doing some sanity checks is a good idea I guess. My next thought was that maybe I don't know how to set it up properly when nested inside a scroll view. But I just created a test project for that scenario and got it to work. The last interesting thing I am doing is that the NSBox is insid

Re: Exception going "uncaught" despite active @catch handler

2014-04-11 Thread Ken Thomases
On Apr 11, 2014, at 4:12 PM, Jens Alfke wrote: > I know the Obj-C religion is that exceptions “normally shouldn’t be caught”, > but this isn’t exactly a normal situation, it’s unit testing. It's not a religion and it's not "shouldn't", it's "if an exception has crossed through code other than y

Re: Exception going "uncaught" despite active @catch handler

2014-04-11 Thread Greg Parker
On Apr 11, 2014, at 2:12 PM, Jens Alfke wrote: > I’ve got a weird situation where an NSAssertion failure is terminating the > process with an “uncaught exception” even though there’s an @try block at a > lower stack frame ready to catch it. Stack is below. The RunTestCase() > function, down a

Exception going "uncaught" despite active @catch handler

2014-04-11 Thread Jens Alfke
I’ve got a weird situation where an NSAssertion failure is terminating the process with an “uncaught exception” even though there’s an @try block at a lower stack frame ready to catch it. Stack is below. The RunTestCase() function, down at frame 20, is calling the unit-test function inside of a

Re: iOS: Cannot connect to iTunes Store

2014-04-11 Thread Markus Spoettl
On 4/11/14, 1:41 AM, Steve Christensen wrote: I’ve been testing IAP in the sandbox store on a development iPod and just started getting this error in -paymentQueue:updatedTransactions: with (transaction.transactionState == SKPaymentTransactionStateFailed): Error Domain=SKErrorDomain Code=0 "Cann

Re: Remove redundant AM/PM when formatting a time range?

2014-04-11 Thread Jens Alfke
On Apr 11, 2014, at 8:41 AM, Ben Kazez wrote: > I’m trying to create a compact time range format, like “2am-4pm” or > “2-5:30pm”. I am constructing the format string using > -dateFormatFromTemplate:options:locale:, omitting the minutes from the > template if that component is zero. Is there a

Re: Excessive open gui graphics files on Mavericks

2014-04-11 Thread Maxthon Chan
The game never saw the light of day actually, and we was on the way reimplementing libcramfs in BSD license. On Apr 11, 2014, at 22:56, Fritz Anderson wrote: > (The attribution chain is wrong, because I’m coming to this after the message > that raised libcramfs.) > > It’s remarkably hard to g

Remove redundant AM/PM when formatting a time range?

2014-04-11 Thread Ben Kazez
Hello, I’m trying to create a compact time range format, like “2am-4pm” or “2-5:30pm”. I am constructing the format string using -dateFormatFromTemplate:options:locale:, omitting the minutes from the template if that component is zero. Is there an internationalization-safe way that I can remov

Re: Excessive open gui graphics files on Mavericks

2014-04-11 Thread Fritz Anderson
(The attribution chain is wrong, because I’m coming to this after the message that raised libcramfs.) It’s remarkably hard to get an answer to this, so I may be talking through my hat: Does this involve linking libcramfs.a into the binary you distribute? Have you published the source of your a

Re: NSBox line with autolayout

2014-04-11 Thread Jonathan Mitchell
On 10 Apr 2014, at 22:30, Julian wrote: > After converting my NIB to use autolayout, I'm not getting an NSBox to > redraw itself at the correct width. > > I have a 'Horizontal Line' (NSBox). In the old model, the autoresizing mask > indicated flexible width. To replace it with constraints, I us