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

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 --

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

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 sample?

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 swipe the detail

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 subclass

Re: iOS App - crash when clearing a UITableDetailView

2012-04-03 Thread Kyle Sluder
On Apr 3, 2012, at 4:52 AM, Steve Bird sb...@culverson.com 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

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 sb...@culverson.com 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

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— On

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 sb...@culverson.com wrote: That's because David swiped it. I chuckled. :) But

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 = {

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

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 = {

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.

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: 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 situation

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

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

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 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 edges