Re: Core Data NSPredicate

2011-03-14 Thread Andreas Grosam
On Mar 13, 2011, at 1:51 AM, Indragie Karunaratne wrote: Andreas, That predicate syntax (and block predicates) won't work in my case because I'm using them in a Core Data NSFetchRequest. This is true only if you use a sqlite store - but this is also most likely ;) If you were not using

Re: Core Data NSPredicate

2011-03-14 Thread Indragie Karunaratne
Thanks Andreas, I see your point, but as far as I know, IN looks for an exact match (in this case, the attribute would have to match the term for the predicate to return true) where as I need it to check if the attribute CONTAINS the term (which is more appropriate for Spotlight-style search).

Re: Problem with NSPredicate in core data fetch request

2011-03-14 Thread Andreas Grosam
On Mar 13, 2011, at 3:08 PM, Gideon King wrote: I'm seeing a strange thing with a predicate. When I apply the predicate to a fetch request, it doesn't return any results, but when I do the fetch without the predicate and then use filteredArrayUsingPredicate to filter the results, it has

Re: Core Data NSPredicate

2011-03-14 Thread Andreas Grosam
On Mar 14, 2011, at 3:10 PM, Indragie Karunaratne wrote: Thanks Andreas, I see your point, but as far as I know, IN looks for an exact match (in this case, the attribute would have to match the term for the predicate to return true) Well, just to clarify the things: IN is a set

Re: Problem with NSPredicate in core data fetch request

2011-03-14 Thread Gideon King
Thanks for that information - that's an important distinction to understand. I guess that may be something to do with what I'm observing, but am not sure exactly how. In my case, I am using an NSAtomicStore subclass. The actual storage behind the scenes maps that attribute to an id attribute

StoreKit sandbox question

2011-03-14 Thread Logan Cautrell
We've previously integrated with iAds. While testing ADBannerView, I noticed in the sandbox that the bannerView:didFailToReceiveAdWithError: delegate method would intermittently be called. It would fail on one to two minute intervals and then start indicating content was available. I assumed

[iOS] How to animate the height of a UITableViewCell

2011-03-14 Thread WT
Hello, in one of my projects, a UITableView instance displays a number of objects whose information is gathered from the web. As it turns out each of these objects can be in one of two states, with visual differences. In the loading state, only a minimal amount of information about the object

Re: CALayer drawing efficiency

2011-03-14 Thread David Duncan
On Mar 13, 2011, at 10:33 PM, Martin Hewitson wrote: I'm working on an app which will show a grid of CALayers (a few hundred in total), each layer is constrained so that its size scales up and down with the super layer. The super layer is then hosted by a view and resizes with the view.

Re: [iOS] How to animate the height of a UITableViewCell

2011-03-14 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 WT wrote: When the object displayed in a given UITableViewCell is in the loading state, the cell's height is just a bit larger than a UILabel's height. When the object is in its loaded state, the cell is quite a bit taller, to accommodate the rest

[Solved] [iOS] How to animate the height of a UITableViewCell

2011-03-14 Thread WT
Duh... I should have searched the web before firing the question to the list. It turns out there are many references to this exact task and its solution. Here's one such: http://www.alexandre-gomes.com/?p=482 Basically, the idea is to call -reloadRowsAtIndexPaths: withRowAnimation: at the

Re: Assertion failure in -[MPMoviePlayerControllerNew _moviePlayerDidBecomeActiveNotification:]

2011-03-14 Thread Matt Neuburg
On Sun, 13 Mar 2011 15:14:53 -0700, Steve Christensen puns...@mac.com said: On Mar 13, 2011, at 11:05 AM, Matt Neuburg wrote: On Tue, 08 Mar 2011 17:01:33 -0800, Steve Christensen puns...@mac.com said: The setup has a MPMoviePlayerController instance that is playing a local audio file. There

Re: [iOS] How to animate the height of a UITableViewCell

2011-03-14 Thread WT
On Mar 14, 2011, at 2:27 PM, Conrad Shultz wrote: WT wrote: When the object displayed in a given UITableViewCell is in the loading state, the cell's height is just a bit larger than a UILabel's height. When the object is in its loaded state, the cell is quite a bit taller, to accommodate the

Drag Drop in an NSOutlineView

2011-03-14 Thread Carter R. Harrison
I'm having trouble getting drag and drop to work with an NSOutlineView. What I've done is below. The problem is that tableView:writeRowsWithIndexes:toPasteboard never gets called. I found a few people with the same issue and it seems that the cause of the problem is that I am using a custom

Re: Drag Drop in an NSOutlineView

2011-03-14 Thread Corbin Dunn
Your custom cell needs to properly implement: - (NSUInteger)hitTestForEvent:(NSEvent *)event inRect:(NSRect)cellFrame ofView:(NSView *)controlView NS_AVAILABLE_MAC(10_5); See the header for details or the AnimatedTableView demo. --corbin On Mar 14, 2011, at 12:20 PM, Carter R. Harrison wrote:

Re: Drag Drop in an NSOutlineView

2011-03-14 Thread Carter R. Harrison
The custom cell I'm using is a modification of ImageAndTextCell from the DragNDropOutlineView sample project. In that class they have some comments that describe how hitTestForEvent:inRect:ofView: works. It's my understanding that if I return anything other than NSCellHitTrackableArea a drag

Re: Drag Drop in an NSOutlineView

2011-03-14 Thread Quincey Morris
On Mar 14, 2011, at 12:20, Carter R. Harrison wrote: I'm having trouble getting drag and drop to work with an NSOutlineView. What I've done is below. The problem is that tableView:writeRowsWithIndexes:toPasteboard never gets called. I found a few people with the same issue and it seems

Re: Drag Drop in an NSOutlineView

2011-03-14 Thread Carter R. Harrison
Ack! I can't believe I missed that. The correct method to implement is: - (BOOL)outlineView:(NSOutlineView *)outlineView writeItems:(NSArray *)items toPasteboard:(NSPasteboard *)pboard Once I changed the method declaration and a few of the implementation details drag and drop is now working!

Re: Drag Drop in an NSOutlineView

2011-03-14 Thread Corbin Dunn
On Mar 14, 2011, at 12:33 PM, Quincey Morris wrote: On Mar 14, 2011, at 12:20, Carter R. Harrison wrote: I'm having trouble getting drag and drop to work with an NSOutlineView. What I've done is below. The problem is that tableView:writeRowsWithIndexes:toPasteboard never gets called.

CALayers in seperate, overlapping, NSViews don't overlap correctly

2011-03-14 Thread James Bucanek
Greetings, I posted this question to the Mac OS X/Graphic/Core Animation forum several weeks ago and no one's been able to answer it, so I'm trying here. I have a fairly complex hierarchy of NSViews (window - split view - tab view, which hosts a variety of table, outline, browser, and

Drag image creation for NSView with CALayer in NSCollectionView calls drawRect:?

2011-03-14 Thread Lee Ann Rucker
I have an NSCollectionView with NSCollectionViewItems that have, amongst other things, a layer-hosting NSView with CALayers. The collectionView has wantsLayers set, and everything there is working nicely - draw, scroll, reorder animation. The trouble comes when I try to drag them. The

Re: Drag image creation for NSView with CALayer in NSCollectionView calls drawRect:?

2011-03-14 Thread Kyle Sluder
On Mon, Mar 14, 2011 at 1:15 PM, Lee Ann Rucker lruc...@vmware.com wrote: Is there something I'm missing that would cause it to create the right drag image for me? If you think about it, you pretty much have to use the old raster drawing path to generate drag images. Even if you don't call

Re: CALayers in seperate, overlapping, NSViews don't overlap correctly

2011-03-14 Thread Kyle Sluder
On Mon, Mar 14, 2011 at 1:13 PM, James Bucanek subscri...@gloaming.com wrote: Here's the weird thing: sometimes, but not all the time, the CALayers in the nested subviews draw ON TOP OF the CALayers in the top-level overlay view. It's almost as if whatever the last CALayer that gets drawn,

Re: [iOS] How to animate the height of a UITableViewCell

2011-03-14 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/14/11 12:01 PM, WT wrote: thanks for your reply. As I posted subsequently to my original message, I found that very answer you recommended in several places online, but some of them suggest bracketing the call to

Re: [iOS] How to animate the height of a UITableViewCell

2011-03-14 Thread WT
On Mar 14, 2011, at 5:40 PM, Conrad Shultz wrote: No problem, happy to help, even if you independently found the solution. As for begin/endUpdates, what these do is synchronize animations that otherwise might be performed serially. If you are updating a single row there is no reason,

Re: Drag image creation for NSView with CALayer in NSCollectionView calls drawRect:?

2011-03-14 Thread Lee Ann Rucker
On Mar 14, 2011, at 1:29 PM, Kyle Sluder wrote: On Mon, Mar 14, 2011 at 1:15 PM, Lee Ann Rucker lruc...@vmware.com wrote: Is there something I'm missing that would cause it to create the right drag image for me? If you think about it, you pretty much have to use the old raster drawing

Ad-hoc distribution still supported in App Store?

2011-03-14 Thread William Squires
And is it what I need? Here's what I have: an iOS (for iPhone/iPod Touch) app that - mostly - works; enough to be usable in a production environment, but doesn't have all the 'spit-and-polish' of a fully completed app. Currently, the project for it resides on my laptop, and whenever I receive

Re: Ad-hoc distribution still supported in App Store?

2011-03-14 Thread Dave Carrigan
Ad hoc distribution has nothing to do with the app store. It is essentially the same distribution mechanism that you have been using, except the expiration of the provisioning profile is much longer. On Mar 14, 2011, at 6:45 PM, William Squires wrote: And is it what I need? Here's what I

Re: Ad-hoc distribution still supported in App Store?

2011-03-14 Thread Matt Neuburg
On Mar 14, 2011, at 6:48 PM, cocoa-dev-requ...@lists.apple.com wrote: I'd like to distribute this on the app store so they can d/l it there, and not have to put up with the reminder notices, but I don't want just anyone to be able to find the app on the App Store. Is this what Ad-hoc

Re: Book Cocoa programming for Mac OS X Third Edition

2011-03-14 Thread Tremaine Q Sterling
I recommend Beginning Mac Programming: Develop with Objective-C and Cocoa by Tim Isted. I concur with Cocoa Design Patterns after you learn a bit. I also liked Cocoa and Objective-C: Up and Running by Scott Stevenson. I would also suggest getting a membership from safaribooksonline.com and

Faster text drawing with configurable stroke width

2011-03-14 Thread George Nachman
Hi cocoa-dev, I'm currently drawing text one character at a time with -[NSAttributedString drawWithRect:options:], and it is really slow. I'm looking for a faster alternative. I draw one character at a time because I need exact control over horizontal positioning (regardless of whether the font

How hidden the Keyboard in a UIWebView

2011-03-14 Thread Rodrigo Zanatta Silva
I searched a lot, and all thing that hidden the keyboard is when you are in a UITextField. This is the problem. I am in a UIWebView and the user click in a text box in the web page, so the iOS open the keyboard. I can know when the keyboard will show by the UIKeyboardWillShowNotification. But, I

Brushed/Polished Metal in 10.5/10.6?

2011-03-14 Thread Tristan Seifert
I've been needing an interface similar to the polished metal in Mac OS X 10.4 in my 10.6 app. First of all, is there a way to get back the brushed metal using an API call, or how would I implement this? I've accomplished rendering the metal on the window itself, but the little 'shine' and the

Keyboard handlers

2011-03-14 Thread Tom Jeffries
I need to intercept repeat keys in one window of an application. I see some references from about 10 years ago about the GLUT key handling routines, but they don't seem to work. In particular glutIgnoreKeyRepeat(TRUE) does not do anything. Should I be using other code? Is there a better way to

binding contextual menu in NSTableView cell row

2011-03-14 Thread Julie Porter
I am looking to replicate the user interface of the Mac OS7 abandonware application MIDIGraphy. Most of my experience has been with the QuckDraw toolbox (over 30 years?) I used to work for Apple Imaging and was one of the Postscript Gurus on the Laserwriter team, so KV coding is second

iOS 4.2 - Printing Quality

2011-03-14 Thread Development
Ok I'm rendering my images slightly larger than the view's that they are being printed from. Basically the quality is less than great. Is there a way to change the CGImage dpi? Or a way to change the quality of the print to maximum? Or is print quality basically just what it is on

Re: CALayers in seperate, overlapping, NSViews don't overlap correctly

2011-03-14 Thread James Bucanek
Kyle Sluder mailto:kyle.slu...@gmail.com wrote (Monday, March 14, 2011 1:33 PM -0700): On Mon, Mar 14, 2011 at 1:13 PM, James Bucanek subscri...@gloaming.com wrote: Here's the weird thing: sometimes, but not all the time, the CALayers in the nested subviews draw ON TOP OF the CALayers in the