NSBrowser drawing glitch

2010-08-29 Thread Sebastian Morsch
Hi! NSBrowser leaves an annoying 2-pixel gap between the right edge of a highlighted browser cell and the vertical column slider. Picture: http://dl.dropbox.com/u/86388/NSBrowserDrawingGlitch.png It does go away when the column width is changed live by the user, but reappears when the cell is

Re: Colored checkboxes like in iCal

2010-04-15 Thread Sebastian Morsch
Hi Andreas, the only alternative to custom drawing I know is using the setImage: and setAlternateImage: methods of NSButton. These let you specify images for unchecked and checked state respectively. You could generate colored checkbox images with your own private method, something like -

Re: Multi Window cocoa application

2010-04-04 Thread Sebastian Morsch
Hi Bharadwaj, I can't point you to the resources/sample code, but maybe this helps you anyway: when following the MVC paradigm, windows must NOT communicate with each other directly. Instead, they are usually owned by window controllers (subclasses of NSWindowController you will have to

Re: Class Message

2010-03-29 Thread Sebastian Morsch
Hi Kevin, since you said you don't need instance variables, why not do it with a category of AppDelegate or even NSApplication (not sure about this one, just throwing it in)? Best, Sebastian Am 29.03.2010 um 10:48 schrieb Kevin Bracey: Hi all, This may be a matter of style... I have

Re: real beginner question

2009-11-16 Thread Sebastian Morsch
Dear Luca, 1. IMHO, providing help for beginners is one aspect of this list. There are some people with extraordinary teaching skills registered here! As long as you do some initial research (Apple Docs, Google, etc) before posting and respect common mailing list etiquette, I'd say it's

Undo and two NSManagedObjectContexts

2009-10-08 Thread Sebastian Morsch
Hi, following the suggestions of Efficiently Importing Data in the Core Data Programming Guide, I use a second MOC (without an undo manager!) to import large amounts of data. While importing, this second MOC is saved and reset every x cycles to reduce memory usage. When done, it's saved

Core Data memory not freed after reset

2009-09-21 Thread Sebastian Morsch
Hi, in my SQLite backed Core Data app, a search action fetches from a large number of objects (1.000.000) only to show them in a table. When the user exits search mode (search string empty), I'd like to free the managed objects to restore the app's normal memory footprint. I do that by

Re: Core Data inverse relationships

2009-08-07 Thread Sebastian Morsch
I'm really not an expert on this but I had this situation myself and I chose having one inverse relationship back to every object that could own a picture. I don't like the looks of the model graph and I don't like the waste of memory but it works pretty good in my case. I tried the

Re: [iPhone] Zero opacity causes UIView to go numb (solved)

2009-07-24 Thread Sebastian Morsch
what you're trying to do. Good luck, Hank On Jul 23, 2009, at 10:49 AM, Sebastian Morsch wrote: Hi, I *KNOW* this must be something absolutely stupid I'm missing, but I'm stuck with this: I have an UIView that's supposed to display an explanatory overlay image whenever it's touched. When

[iPhone] Zero opacity causes UIView to go numb

2009-07-23 Thread Sebastian Morsch
Hi, I *KNOW* this must be something absolutely stupid I'm missing, but I'm stuck with this: I have an UIView that's supposed to display an explanatory overlay image whenever it's touched. When the user lifts the finger, the overlay should fade away. To accomplish this I do the following

Re: NSDrawNinePartImage draws slowly in CALayer

2009-03-08 Thread Sebastian Morsch
schrieb Jean-Daniel Dupas: Le 6 mars 09 à 20:42, Jean-Daniel Dupas a écrit : Le 6 mars 09 à 20:33, Sebastian Morsch a écrit : Hello, I wrote a delegate that draws a bezel inside a CALayer using NSDrawNinePartImage. The drawing happens inside the drawLayer:inContext: method and it works well

NSDrawNinePartImage draws slowly in CALayer

2009-03-06 Thread Sebastian Morsch
Hello, I wrote a delegate that draws a bezel inside a CALayer using NSDrawNinePartImage. The drawing happens inside the drawLayer:inContext: method and it works well. The only problem is that it redraws really slow when the layers frame is resized by the user. The layer is simply

iPhone MPMoviePlayerController stops iPod

2009-02-22 Thread Sebastian Morsch
I tried to implement a short modal and full-screen animation with MPMoviePlayerController within my application. It is only meant as a nice transition between two different working modes of the app. Understandably, playing a movie with MPMoviePlayerController pauses music playback of the

Re: Using UIImageView for animations

2009-01-13 Thread Sebastian Morsch
I am having the same problem with UIImageView, just in my case, it's not FPS performance but running out of memory. Using + imageWithContentsOfFile didn't seem to solve the problem. I had 20 full screen PNGs loaded at the same time to hand them over to the view via the animationImages

Re: NSDistantObject in Core Data

2008-11-13 Thread Sebastian Morsch
Hi, I can't answer your first question, but concerning your second one: check out NSPropertyDescription isTransient:. However, this applies to properties, not entities. I don't think entities can be transient in the true meaning of the word. But if all properties of an entity are