Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jassim

macrumors newbie
Original poster
Feb 4, 2008
2
0
Hi,

I am very new to Cocoa and am using XCode 2.5 for editing the Objective C code. Today i have downloaded a small application for dragging a small rectangle on a Canvas (NSView). But when i set a break point in the mouse down event and tried to drag the rectangle in run mode. But it did not enter into the break point. But the programme is working !!! Why break point is not working. I am using Tiger machine. Pls help me......:)

Thanks in advance.......
 

gnasher729

Suspended
Nov 25, 2005
17,980
5,566
Hi,

I am very new to Cocoa and am using XCode 2.5 for editing the Objective C code. Today i have downloaded a small application for dragging a small rectangle on a Canvas (NSView). But when i set a break point in the mouse down event and tried to drag the rectangle in run mode. But it did not enter into the break point. But the programme is working !!! Why break point is not working. I am using Tiger machine. Pls help me......:)

Thanks in advance.......

1. Did you start using the debugger (Command-Y instead of Command-R).
2. Do any breakpoints work? Set one in the first line of main () to check.
3. If any breakpoints work: Are you sure the mouse down event is entered? Very often operations like dragging are filtered out before the mouse down code is called and mouse down is supposed to handle anything that isn't handled otherwise only.
 

jassim

macrumors newbie
Original poster
Feb 4, 2008
2
0
Re: Breakpoint is not working

hi,

thanks for the reply gnasher :) Ys i tried by using Command Y but still it is not working. But i set a NSAlert in that event and it worked fine. But I don't know why the break point is not working. Even i tried by putting a breakpoint in the main(), it is also not working........!! pls help me......:)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.