Re: Resizing Columns
Re: Resizing Columns
- Subject: Re: Resizing Columns
- From: Cameron Hayne <email@hidden>
- Date: Fri, 10 Jun 2005 16:23:11 -0400
On 10-Jun-05, at 4:09 PM, Thomas Davie wrote:
It appears that if I add
NSLog (@"{%f,%f,%f,%f}", aRect.origin.x, aRect.origin.y,
aRect.size.width, aRect.size.height);
in the selection code it all works...
This symptom (adding a print statement makes a bug go away) is often
indicative of a memory problem - e.g. an array overstepping its
bounds, or a function that is not returning the type it is supposed
to. Examine your code more closely (it isn't necessarily in the
immediate neighbourhood of where you put the NSLog statement), turn
on all warnings (-Wall) or try using a tool like 'lint' (I don't know
if there is a version that will handle Obj-C).
--
Cameron Hayne
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden