Hey everyone. I'm having rather odd issues with the NSAutoRelease pool. My program is crashing when the NSAutoRelease pool releases an NSString that I have neither retained nor r…
My guess is that NSString's -substringWithRange: returns an autoreleased NSString, so if you autorelease that, it's on the autorelease pool twice, and thus gets sent -release twice…
Quote:
Originally posted by oVeRmInD911:
My guess is that NSString's -substringWithRange: returns an autoreleased NSString, so if you autorelease that, it's on the autor…
Quote:
Originally posted by Detrius:
Is it possible that I am releasing an object elsewhere that is already on the autorelease pool, and then this object just inadverte…
Don't autorelease the object. Whenever you get an object without using an alloc] init... statmeent, it's assuemd the the object has already been autoreleased.
Matt Fahrenbacher
The thing that is absolutely bizarre is that according to Apple's ObjectAlloc utility, the NSString object has been neither retained nor released, yet it is crashing in the autorel…
Quote:
Originally posted by Detrius:
If I autorelease the object returned from this function, the program crashes at the the NSString object. If I do not autorelease th…
wait, now that I actually read the part I quoted I'm less sure I ever knew what you were talking about. Did you mean you were autoreleasing the NSString you were talking about, or…
Quote:
Originally posted by Uncle Skeleton:
wait, now that I actually read the part I quoted I'm less sure I ever knew what you were talking about. Did you mean you wer…
First thing, you shouldn't start your classes with lower case letters - it's bad style
laExpression => LAExpression
Second, I'm betting then something really weird is happeni…
Quote:
Originally posted by Detrius:
I realized that I hadn't been following proper procedure, so I went back through all of my code and changed it as seemed appropriate…
Quote:
Originally posted by Uncle Skeleton:
my first instinct is to say you probably had a release on one of those once and now it's being auto-released and the stray re…
New information:
Elsewhere in this laExpression class, I have been using the NSNotification center to pass messages to whomever needs to know when the object has changed. On a wh…
Maybe you should take a look at the stuff in NSDebug.h and search Apple's developer site for MallocDebug. These are both helpful in tracking down these types of issues.
Some closure here... apparently, ObjectAlloc isn't a program you can rely on to give you details about why your program crashed. The thing that I finally had to do is print out a…
yes, i need help with some ThemePark problems. Okay, first off, in "Menu Item Selected" (Blue or Graphite) the image provided is too small or something, because it starts to repeat…
Quote:
Originally posted by TheDisaster:
You could make the box part of the widget itself. Just make the inside sides of the boxes meet each other so they appear to conn…
:: Best way to do it is make the box part of the TitleBar Caps.
:: Then, make the widgets with a transparent background
:: and they will float on top of the box.
:: Fluid
for the menu item selected... why not just make the graphic 1 pixel taller? Menu graphics are pretty friendly when it comes to resizing. Also, be sure to hit the Options button whe…
don't worry wibs, Mac15 IM'd me and told me how to do it. and i was fairly new to ThemePark (still am) so i thought by clicking "Resize all Images" or whatever would resize EVERYTH…
Quote:
Originally posted by fireside:
Progress Bars: on the regular one: i want to make it so there are 1 pixel thin strips going across the progress bar, but whenever i…
Just a note.. If you want to have a gradient for menu item selections, I recommend that you use the Menu Enhancer option, because that will make them stretch instead of tile when t…