Re: Core Data Multiuser

2012-07-15 Thread Eli Bach2
On Jul 14, 2012, at 5:18 AM, Alexander Spohr wrote: Am 13.07.2012 um 21:38 schrieb Flavio Donadio: What do you guys think about it? Is it a bad idea? I've studied a lot of alternatives (BaseTen, ODBC, Web Services), but I can't wrap my head around them... Use WebObjects and EOF (the

Re: Binding NSTableView to NSSet

2012-07-15 Thread Willeke
Op 14 jul 2012, om 04:46 heeft Koen van der Drift het volgende geschreven: A follow up question: how do I now sort the data in the table? I am showing three values in the table, and like to sort based on either one of them. The original data is in an unordered NSSet (from my CD model). I

Re: Core Data Multiuser

2012-07-15 Thread Alexander Spohr
Am 15.07.2012 um 08:12 schrieb Eli Bach2: On Jul 14, 2012, at 5:18 AM, Alexander Spohr wrote: Am 13.07.2012 um 21:38 schrieb Flavio Donadio: Use WebObjects and EOF (the big mature brother of CoreData) on the server! We feed multiple hundred thousand iOS devices daily with it - as does

Sandbox Unit Testing

2012-07-15 Thread Rainer Standke
Hello, I have an app that is sandboxed that I want to perform some unit testing with. When I run the test, I get something like: no suitable image found... open() failed with errno=1 IDEBundleInjection.c: Error loading bundle ' When I turn off Entitlements in the application target's Summary

Re: Core Data book for OSX

2012-07-15 Thread Chuck Soper
Koen, CoreData for iOS and Mac are mostly the same, but the biggest difference is that iOS doesn't support bindings. Bindings are important and for that reason I don't think that an iOS Core Data book would be sufficient for you. I recommend Cocoa Programming: A Quick-Start Guide for

CA crossfade

2012-07-15 Thread Fritz Anderson
10.7 SDK, 10.7 target. The content view of the window is layer-hosting, containing only a CALayer. I'm trying to crossfade the contents image of the CALayer from Image A (the existing contents) to Image B (the new contents). Surely this is simple. I'm thrashing. Here is an excerpt from my

Re: CA crossfade

2012-07-15 Thread Fritz Anderson
I'm an adventurer, so I tried this: === self.backgroundLayer.contents = nsImage; CABasicAnimation * crossfade; crossfade = [CABasicAnimation animationWithKeyPath: @contents]; crossfade.duration = 2.0; crossfade.removedOnCompletion = YES; [self.backgroundLayer addAnimation: crossfade

NSAttributedString location for drawing, glyph location and baseline

2012-07-15 Thread Alexander Reichstadt
Hi, I have a subclass of NSAttachmentCell which draws itself into an NSTextView. Its y-location is wrong though when drawing the cell using - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *) controlView characterIndex:(NSUInteger)charIndex layoutManager: (NSLayoutManager

Re: NSAttributedString location for drawing, glyph location and baseline

2012-07-15 Thread Alexander Reichstadt
I think I found it in, at least it looks correct: CGFloat gb = [[NSTypesetter sharedSystemTypesetter] baselineOffsetInLayoutManager:[(NSTextView *)controlView layoutManager] glyphIndex:charIndex]; NSRect useFrame = cellFrame; useFrame.origin.y += gb; Thanks Am 15.07.2012 um 23:40 schrieb

+bundleForClass: category question

2012-07-15 Thread Graham Cox
If I create a category on a standard framework class as part of another framework, and I use +[NSBundle bundleForClass:] to load an image resource for use by that category, does that work, i.e. does it load the bundle of the framework containing the category, or the bundle containing the

Re: Cocoa-dev Digest, Vol 9, Issue 488

2012-07-15 Thread Flavio Donadio
On Jul 14, 2012, at 4:00 PM, Alexander Spohr wrote: Am 15.07.2012 um 08:12 schrieb Eli Bach2: On Jul 14, 2012, at 5:18 AM, Alexander Spohr wrote: Use WebObjects and EOF (the big mature brother of CoreData) on the server! Um, what? Apple may still be using it internally, but they are no

Re: +bundleForClass: category question

2012-07-15 Thread David Duncan
On Jul 15, 2012, at 7:30 PM, Graham Cox graham@bigpond.com wrote: If I create a category on a standard framework class as part of another framework, and I use +[NSBundle bundleForClass:] to load an image resource for use by that category, does that work, i.e. does it load the bundle of

Re: +bundleForClass: category question

2012-07-15 Thread Graham Cox
On 16/07/2012, at 1:29 PM, David Duncan wrote: In this case, it means your bundle will be the framework bundle. Just to be clear, you mean the bundle for the *original* framework (AppKit, say) and not my framework which contains the category? --Graham

Re: +bundleForClass: category question

2012-07-15 Thread David Duncan
On Jul 15, 2012, at 9:07 PM, Graham Cox graham@bigpond.com wrote: On 16/07/2012, at 1:29 PM, David Duncan wrote: In this case, it means your bundle will be the framework bundle. Just to be clear, you mean the bundle for the *original* framework (AppKit, say) and not my framework