Leak

2011-07-03 Thread John MacMullin
Environment: 'reference' rather than 'garbage collection'. Instruments tells me that I have a Foundation leak: Leaked Object,# Address SizeResponsible Library Responsible Frame Malloc 176 Bytes, 0x86e290176 Foundation -[NSNotificationCenter

Initial project shell and handling of window pointer

2011-07-03 Thread Phil Hystad
I am not sure if this is a question for Cocoa-dev or for Xcode. I just started playing around with iOS 4 and Xcode 4. Learning the ropes of the new Xcode I see a difference in how the project templates are used to create a simple Cocoa window app in iOS versus Mac OS X. With iOS, the app

Re: Initial project shell and handling of window pointer

2011-07-03 Thread Fritz Anderson
On 3 Jul 2011, at 12:49 PM, Phil Hystad wrote: I just started playing around with iOS 4 and Xcode 4. Learning the ropes of the new Xcode I see a difference in how the project templates are used to create a simple Cocoa window app in iOS versus Mac OS X. With iOS, the app delegate handler

Line Drawing problem

2011-07-03 Thread Dale Satterfield
I am trying to write an application that needs to plot some data and draw lines between the points. The code I am using is: for(index = 0; index (limit - 1); index++) { [NSBezierPath setDefaultLineWidth: 4 * MIN(unitSize.height,

Re: Line Drawing problem

2011-07-03 Thread Jens Alfke
On Jul 3, 2011, at 1:48 PM, Dale Satterfield wrote: Lines with sufficient slope always draw in Black(the set color), and the specified width. However if the slope is low enough they print thinner, and in a different color. This is an example: The image didn’t show up, but you’re probably

Re: Line Drawing problem

2011-07-03 Thread Dale Satterfield
Thanks Jens, I have tried that and it does not change the appearance. One thing I did do after trying that was to turn anti-aliasing off. That does make a difference. But does not solve all the problems. I started with the code in XCode3 Unleashed in chapter 13 which plots points. On page 193

Re: How to resolve bulk warning Creating selector for nonexistent method ...?

2011-07-03 Thread arri
Hi Motti, I would be very interested to know how you resolved this issue, if at all. I'm suddenly facing the same issue, out of no-where. Instead of trying to find the source of the problem, I just reverted to the last known working version (svn), but the warnings persist. This surprises me a

Bundled Image scaled down when displayed (drawAtPoint)

2011-07-03 Thread Benjamin Dubois
Hello, all! Happy 4th of July weekend! I am currently learning Cocoa/Objective C with XCode 4.0.2 and the 10.6 SDK. I had started to learn a few Cocoa bits way back when it first showed up with 10.0 preview (thanks to the student developer program) but ended up spending most of my programming

Re: Line Drawing problem

2011-07-03 Thread Jens Alfke
On Jul 3, 2011, at 5:39 PM, Dale Satterfield wrote: Hopefully this image will show in your email. Note that the horizontal lines though much thinner, at least now show up as black with the anti-aliasing turned off. I still have to have anti-aliasing on, so I still have the problem, as

Re: Bundled Image scaled down when displayed (drawAtPoint)

2011-07-03 Thread Jens Alfke
On Jul 3, 2011, at 9:00 AM, Benjamin Dubois wrote: It looks like when I run the app, my bundled image is scaled down to about 75% of it is actual size. The resolution of the image is probably set to greater than 72dpi. Take a look at it in the Preview app’s Info pane. To fix this, either use

Re: Bundled Image scaled down when displayed (drawAtPoint)

2011-07-03 Thread Quincey Morris
On Jul 3, 2011, at 09:00, Benjamin Dubois wrote: NSString* imageName = [[NSBundle mainBundle] pathForResource:@image1 ofType:@png]; NSLog(@imageName:%@,imageName); NSImage* tempImage = [[NSImage alloc] initWithContentsOfFile:imageName]; It's a whole lot easier

Add a view as observer of a subview transform

2011-07-03 Thread Tales Pinheiro De Andrade
Hi, I have a view with a subview. The subview is rotated by a drag operation, when I change the subview transform property. Now I'm trying to set the view as observer of subview transform property, like this: [subView addObserver:self forKeyPath:@transform

Re: Add a view as observer of a subview transform

2011-07-03 Thread David Duncan
On Jul 3, 2011, at 9:40 PM, Tales Pinheiro De Andrade wrote: I have a view with a subview. The subview is rotated by a drag operation, when I change the subview transform property. Now I'm trying to set the view as observer of subview transform property, like this: UIKit doesn't promise