Re: NSApplicationShowExceptions - useful on main thread only?

2012-09-25 Thread Keith Duncan
We use NSApplicationCrashOnExceptions which avoids the silent logging and the interface, and just plain crashes, akin to the iOS approach to exceptions. When we turned this on in one of our products we found (and fixed) four unreported issues by merit of the crash reports it generated. Cheers,

Why does Xcode claim a lib has no ARMv7 slice, when lipo shows that it's all ARMv7?

2012-09-25 Thread Gavin Stokes
Our app won't build right now because of this: ld: file is universal (1 slices) but does not contain a(n) armv7s slice: /projects/libcrypto-device.a for architecture armv7s But lipo says: Architectures in the fat file: /projects/libcrypto-device.a are: armv7 I've cleaned the project

Re: Why does Xcode claim a lib has no ARMv7 slice, when lipo shows that it's all ARMv7?

2012-09-25 Thread Roland King
On 25 Sep, 2012, at 5:26 PM, Gavin Stokes stokest...@gmail.com wrote: Our app won't build right now because of this: ld: file is universal (1 slices) but does not contain a(n) armv7s slice: /projects/libcrypto-device.a for architecture armv7s But lipo says: Architectures in the

Re: Why does Xcode claim a lib has no ARMv7 slice, when lipo shows that it's all ARMv7?

2012-09-25 Thread Gavin Stokes
armv7s note the s on the end. Thanks. What is armv7s, and how does one compile for it? A quick search didn't reveal any obvious references to it online. I'm using a build script for OpenSSL that configures the build for armv7. ___ Cocoa-dev

Re: Why does Xcode claim a lib has no ARMv7 slice, when lipo shows that it's all ARMv7?

2012-09-25 Thread Roland King
Sorry I was going to type more but sent by mistake and figured you'd probably sort it out. armv7s is what the iPhone 5 uses. I'm assuming at some point you switched to Xcode 4.5 and the latest SDK so the standard compile includes armv7 and armv7s, so you need a library with both. You can

Re: Why does Xcode claim a lib has no ARMv7 slice, when lipo shows that it's all ARMv7?

2012-09-25 Thread Gavin Stokes
Thanks. Yes, I was well on the way to sorting it out, but I was just waiting for the build to finish to report back. I was able to easily add armv7s to the build script, and it seems to be progressing happily. There's a bunch of info here:

Re: How to calculate NSToolbar height in fullscreen mode

2012-09-25 Thread Nava Carmon
It's good to know that I'm not alone in this ordeal :), though it doesn't solve the problem. The height of toolbar (as it returned by the function, that I took from Apple's example) before entering the FS is some 50 pix. Measured height of the same toolbar in FS is 63 pix (both are without title

Re: autosavesInPlace and sandbox

2012-09-25 Thread Mike Abdullah
On 23 Sep 2012, at 19:59, Georg Seifert georg.seif...@gmx.de wrote: Another alternative would be to ask the system to autosave to an alternative location which you do have write access to. Your users lose the ability to easily spot the autosaved copy of the doc, but otherwise it should

Re: How to calculate NSToolbar height in fullscreen mode

2012-09-25 Thread Lee Ann Rucker
On Sep 25, 2012, at 5:07 AM, Nava Carmon wrote: It's good to know that I'm not alone in this ordeal :), though it doesn't solve the problem. The height of toolbar (as it returned by the function, that I took from Apple's example) before entering the FS is some 50 pix. Measured height of

Just to confirm: no way to get/set wifi programmatically on iOS, right?

2012-09-25 Thread Rick Mann
I'm fairly sure this is the case, but is there any way to get and/or set the wifi settings of an iOS device from an app? It would be a big step to at least be able to know the wifi network and password used to connect. This is for an app that will configure a hardware accessory's wifi

Re: drawGlyphsForGlyphRange layout issue

2012-09-25 Thread Aki Inoue
1. Why is -drawWithRect:options:attributes: more compatible with NSLayoutManager? It's not about either is compatible. When using line fragment origin layout, we're using typesetter behavior 10.2 compatibility for historical reasons. NSLayoutManager, by default, uses the latest behavior.

NSWindowController and nib in framework

2012-09-25 Thread Quincey Morris
Here's an except of some code in a window controller: - (id) init { self = [super initWithWindowNibName: @MyWindow]; … return self; } + (MyWinController*) myWinController { return [[MyWinController alloc] init]; } The key point here is that the MyWinController

Core Data - nil-ing a relationship to a missing object

2012-09-25 Thread Steve Steinitz
Hi, If a Core Data to-one relationship is missing its target entity (and so throwing can't-fulfill-fault exceptions), how can I set the relationship to nil? If I do object.missingObject = nil; or [object setValue: nil forKey: @missingObject]; Core Data throws (when it tries

Re: nstableview without nsscrollview

2012-09-25 Thread Alfian Busyro
Thanks for the answer. Just leave it in a scrollview, and set it to not scroll in any direction, and size the scrollview to the table's height/width. That's it. Actually I did it, In IB I deselect Show Horizontal Scroll and Show Vertical Scroll the table view won't scroll but still bouncing

Re: nstableview without nsscrollview

2012-09-25 Thread Gary L. Wade
There's an elastic setting, which I don't recall the exact name or settings, but you just turn those off to get rid of the bounce. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Sep 25, 2012, at 9:55 PM, Alfian Busyro alfian.bus...@kddi-web.com wrote: Thanks for the answer.

Re: nstableview without nsscrollview

2012-09-25 Thread Andy Lee
setVerticalScrollElasticity: As it happens I just noticed this existence of this property today. --Andy On Sep 26, 2012, at 1:32 AM, Gary L. Wade garyw...@desisoftsystems.com wrote: There's an elastic setting, which I don't recall the exact name or settings, but you just turn those off to

Re: NSWindowController and nib in framework

2012-09-25 Thread Graham Cox
On 26/09/2012, at 12:35 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: Anyone have an idea what's going on here, and what I should really do to avoid/fix the problem? Is the app sandboxed? I ask because I've had reports of this same error from the odd user but have been