Re: Core Data Automatic Lightweight Migration

2012-04-03 Thread Richard Somers
On Apr 2, 2012, at 11:01 PM, Jerry Krinock wrote: > That is expected behavior. The "tildefied" document, as I call it (tilde = > "~") is in fact the old document, prior to migration, which Core Data has > renamed. It is an undocumented "feature" of Core Data. Apparently, the idea > is that,

Re: Crash in NSBitmapImageRep representationUsingType: NSPNGFileType for 8-bit grayscale

2012-04-03 Thread John Horigan
I have a crash report: It is crashing inside the libPng.dyld png_malloc routine because an attempt by system malloc to allocate a memory block at 0x1003efe58 fails because heap corruption was detected. I instrumented allocations and determined that my code never allocated memory near here. But l

Re: Weird scrolling thing in Lion

2012-04-03 Thread Graham Cox
On 04/04/2012, at 11:49 AM, James Maxwell wrote: > Ah, found it in DrawKit -- DKViewController, [view stopAutoScrolling]. > Thanks Graham! ;-) > > (weird that I didn't need this before…) > > J. Autoscrolling is performed by a timer, so that it happens smoothly as long as the mouse is at the

Using NSView fullscreen mode vs. autolayout constraints

2012-04-03 Thread douglas welton
Hi All, [I've read the Cocoa Autolayout release notes and googled for "NSView autolayout fullscreen" and nothing I've found has shed any light on my problem] Here's the issue: My application has a custom view with constraints set to pin it to the top, bottom, and trailing edges of the window.

Re: Weird scrolling thing in Lion

2012-04-03 Thread James Maxwell
Ah, found it in DrawKit -- DKViewController, [view stopAutoScrolling]. Thanks Graham! ;-) (weird that I didn't need this before…) J. On 2012-04-03, at 4:21 PM, James Maxwell wrote: > No, not the reversed scrolling which is really great, now that I'm used to it. > > I have a graphical music in

Weird scrolling thing in Lion

2012-04-03 Thread James Maxwell
No, not the reversed scrolling which is really great, now that I'm used to it. I have a graphical music interface, created using DrawKit. I use command-shift-click (then drag) as a special command to export a MIDI file from the selected object (it's a musical staff object). It behaved properly i

Re: How to bind to NSMutableArray that may contain zero objects?

2012-04-03 Thread Quincey Morris
On Apr 3, 2012, at 15:29 , Michael Crawford wrote: > Using and NSArrayController I'd like to bind the controller to an instance of > NSMutableArray, which under certain circumstances may contain zero objects. > I don't have any real experience with NULL placeholders but I assume this > situati

How to bind to NSMutableArray that may contain zero objects?

2012-04-03 Thread Michael Crawford
Using and NSArrayController I'd like to bind the controller to an instance of NSMutableArray, which under certain circumstances may contain zero objects. I don't have any real experience with NULL placeholders but I assume this situation is what they are for. Can someone give me some guidance

Re: Core Data won't accept this string...

2012-04-03 Thread James Cicenia
Thank you for taking the time to answer. Sorry about the declarative question mark. I guess I just needed a sanity check. I inherited a NSManagedObject category that was being too aggressive in converting everything to Dictionary. So, I turned that value back into an NSString and it worked. T

Re: Core Data won't accept this string...

2012-04-03 Thread Fritz Anderson
On 3 Apr 2012, at 12:11 PM, James Cicenia wrote: > I am trying to import data into Core Data. I am trying to set the value of > one the attributes to the following string: > > MeasureID = 2376; >Property = { >root = { >ExtendedProperties = { >

Core Data and ARC crasher and workaround

2012-04-03 Thread Zac Bowling
So I'm running into a crasher in iOS 5.0 and iOS 5.1 when using ARC with Core Data and wanted to warn everyone and give a possible fix. I'm filing radar on this but wanted to push it out there to list because it took me a while to track down exactly what the issue was from the crazy stack trace.

Core Data won't accept this string...

2012-04-03 Thread James Cicenia
Hello - I am trying to import data into Core Data. I am trying to set the value of one the attributes to the following string: MeasureID = 2376; Property = { root = { ExtendedProperties = { item = {

Re: iOS App - crash when clearing a UITableDetailView

2012-04-03 Thread Alex Zavatone
Ahh. My head's been in Xcode for so long, I turned off my humor module, or forgot to alloc init it this morning. On Apr 3, 2012, at 10:20 AM, Kyle Sluder wrote: > On Apr 3, 2012, at 4:52 AM, Steve Bird wrote: > >> >> That's because David swiped it. > > I chuckled. :) > > But it's worth r

Re: iOS App - crash when clearing a UITableDetailView

2012-04-03 Thread Alex Zavatone
Swipe? I don't know what that means with regards to Cocoa. Is this a term or are you joking with me? (Seriously) On Apr 3, 2012, at 7:52 AM, Steve Bird wrote: > > On Apr 3, 2012, at 7:21 AM, Alex Zavatone wrote: > >> >> On Apr 3, 2012, at 6:45 AM, Marco Tabini wrote: >> >>> Hi David— >>

Re: iOS App - crash when clearing a UITableDetailView

2012-04-03 Thread Mikkel Islay
On 3 Apr 2012, at 16:20, Kyle Sluder wrote: > On Apr 3, 2012, at 4:52 AM, Steve Bird wrote: > >> >> That's because David swiped it. > > I chuckled. :) > > But it's worth remembering we have many non-fluent English speakers on this > list who may not know that "swipe" is also slang for "to s

Re: iOS App - crash when clearing a UITableDetailView

2012-04-03 Thread Kyle Sluder
On Apr 3, 2012, at 4:52 AM, Steve Bird wrote: > > That's because David swiped it. I chuckled. :) But it's worth remembering we have many non-fluent English speakers on this list who may not know that "swipe" is also slang for "to steal", and thus not realizing you were making a clever pun.

Re: NSScroller in layer backed view

2012-04-03 Thread jonat...@mugginsoft.com
On 3 Apr 2012, at 08:47, Ryan Joseph wrote: > I've just started using CoreAnimation for fading views and simple things like > that but now I've run across a problem with NSScroller. > > In a view which is layer backed (setWantsLayer is on) I have a NSScrollView > with a custom NSScroller subcl

Re: iOS App - crash when clearing a UITableDetailView

2012-04-03 Thread Steve Bird
On Apr 3, 2012, at 7:21 AM, Alex Zavatone wrote: > > On Apr 3, 2012, at 6:45 AM, Marco Tabini wrote: > >> Hi David— >> >> On 2012-04-03, at 6:33 AM, David Delmonte wrote: >> >>> After changing a setting and removing a subview from a UITableDetailView, I >>> get crashes when I accidentally sw

Re: iOS App - crash when clearing a UITableDetailView

2012-04-03 Thread Alex Zavatone
On Apr 3, 2012, at 6:45 AM, Marco Tabini wrote: > Hi David— > > On 2012-04-03, at 6:33 AM, David Delmonte wrote: > >> After changing a setting and removing a subview from a UITableDetailView, I >> get crashes when I accidentally swipe the detail view. > > Can you reduce this down to a code sa

Re: iOS App - crash when clearing a UITableDetailView

2012-04-03 Thread Marco Tabini
Hi David— On 2012-04-03, at 6:33 AM, David Delmonte wrote: > After changing a setting and removing a subview from a UITableDetailView, I > get crashes when I accidentally swipe the detail view. Can you reduce this down to a code sample? There is no such thing as a UITableDetailView (I used to

iOS App - crash when clearing a UITableDetailView

2012-04-03 Thread David Delmonte
After changing a setting and removing a subview from a UITableDetailView, I get crashes when I accidentally swipe the detail view. This is the crash message: VM Regions Near 0xa7c98f9b: __LINKEDIT 8feea000-8fefd000 [ 76K] r--/rwx SM=COW /usr/lib/dyld --> Subma

NSScroller in layer backed view

2012-04-03 Thread Ryan Joseph
I've just started using CoreAnimation for fading views and simple things like that but now I've run across a problem with NSScroller. In a view which is layer backed (setWantsLayer is on) I have a NSScrollView with a custom NSScroller subclass which performs drawing in drawRect:. When the root