Customize UIBarButtonItem

2010-03-01 Thread Michael Abendroth
Hi, I want to customize a UIBarButtonItem's background image. I have already tried using the customView property (with a UIButton) , but it does not work, instead it shows nothing. Searching around the web gives some results, but none have worked for me. Thanks for any input! - Michael _

Create a Quicktime-like window

2010-02-08 Thread Michael Abendroth
Hi, I'd like to create a Quicktime-like window with Cocoa that hides the titlebar when the mouse is not inside the window. I followed Matt Gallagher's post on drawing custom windows with Cocoa (http://cocoawithlove.com/2008/12/drawing-custom-window-on-mac-os-x.html), but it seems quite a lot of wo

Question about garbage collection

2010-01-03 Thread Michael Abendroth
Hi all, When I write something like: while (true) { NSString *s = [[NSString alloc] initWithString:@"applejuice"]; } Will s be garbage collected? If not, how can I make sure it does get deallocated by garbage collection. ___ Cocoa-dev mailing list

Re: NSBezierPath vs. NSImage

2009-12-11 Thread Michael Abendroth
On Fri, Dec 11, 2009 at 11:14 AM, Alastair Houghton wrote: > On 11 Dec 2009, at 09:10, Michael Abendroth wrote: > >> when drawing custom buttons, should you use NSBezierPath or NSImage >> instances? > > Yes. > >> Which is more efficient, performance-wise / memory-

NSBezierPath vs. NSImage

2009-12-11 Thread Michael Abendroth
Hi, when drawing custom buttons, should you use NSBezierPath or NSImage instances? Which is more efficient, performance-wise / memory-wise? Thanks for any tips, - Mike ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin re

Re: Customize the line's color that separates the window content from the title bar?

2009-12-08 Thread Michael Abendroth
On Tue, Dec 8, 2009 at 8:54 PM, Jens Alfke wrote: > > On Dec 8, 2009, at 9:25 AM, Michael Abendroth wrote: > >> I'd like to customize the color of the line that separates a window's >> content area from its title bar. > > Try turning on the "textured

Customize the line's color that separates the window content from the title bar?

2009-12-08 Thread Michael Abendroth
Hi, I'd like to customize the color of the line that separates a window's content area from its title bar. I've uploaded a screenshot of the line I mean here: http://i48.tinypic.com/r2q9eu.png . How would I do this, if possible without having to subclass NSWindow? Thanks, -Mike

Creating a small timer?

2009-11-09 Thread Michael Abendroth
Hi, I would like to create a small timer. Basically, the timer sits in a view. When the view is shown, the timer should start, and when the view is hidden / closed, the timer should stop. While the view is visible, the user should be able to access controls / manipulate values inside the view. How

Creating a tiled image from resource images

2009-10-30 Thread Michael Abendroth
Hi everyone, i would like to (programmatically) create a tiled image from resource images I created. I will have to use 9 tiles to create the image I want. I think I read somewhere that some methods exist in Cocoa that make this very easy, but I cannot find that reference anymore, neither anything

Re: Problem with allocating memory

2009-10-28 Thread Michael Abendroth
Thanks for the input! Using the %p printing, I found out that I might not actually have the problem I thought I had. I checked for the addresses in memory of the entries. They are all different so I guess the problem isn't that they all point to the same object. Basically, I got a source list to wi

Problem with allocating memory

2009-10-27 Thread Michael Abendroth
Hi everybody, I wrote this extremely simple program: #import int main (int argc, const char * argv[]) {     NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; for (int i = 0; i < 3; i++) { NSMutableString* myString = [[NSMutableString alloc] initWithString:[[NSDate date] description