Re: Where or when do I release this object from this action.

2009-02-27 Thread Graham Cox
On 28/02/2009, at 9:42 AM, James Cicenia wrote: The question is where do I release that object. The general answer is, when you no longer need it. So, when is that? If I put the release at the end of the method, nothing will pop into my view. If I don't release it, it works fine, but then

Re: Where or when do I release this object from this action.

2009-02-27 Thread Peter N Lewis
At 15:43 -0600 27/2/09, James Cicenia wrote: Here is my code: - (void)monthFruitAction:(id)sender{ MonthPickerViewController *mpvc = [[MonthPickerViewController alloc]initWithNibName:@"MonthPicker" bundle:nil]; [mpvc setMyParentController:self]; mpvc.view.frame =CGRectMake(19

Re: Where or when do I release this object from this action.

2009-02-27 Thread James Cicenia
Thanks That makes a lot of sense. James On Feb 27, 2009, at 5:25 PM, Sherm Pendley wrote: On Fri, Feb 27, 2009 at 5:42 PM, James Cicenia wrote: OK - The question is where do I release that object. If I put the release at the end of the method, nothing will pop into my view. If I do

Re: Where or when do I release this object from this action.

2009-02-27 Thread Sherm Pendley
On Fri, Feb 27, 2009 at 5:42 PM, James Cicenia wrote: > OK - > > The question is where do I release that object. If I put the release at the > end of the method, nothing will pop into my view. > If I don't release it, it works fine, but then I am worried about a leak. > > - (void)monthFruitAction

Re: Where or when do I release this object from this action.

2009-02-27 Thread James Cicenia
OK - The question is where do I release that object. If I put the release at the end of the method, nothing will pop into my view. If I don't release it, it works fine, but then I am worried about a leak. - (void)monthFruitAction:(id)sender{ MonthPickerViewController *mpvc = [[MonthPicker

Re: Where or when do I release this object from this action.

2009-02-27 Thread Shawn Erickson
On Fri, Feb 27, 2009 at 1:57 PM, James Cicenia wrote: > Here is the scenario - > > If I put [mpvc release] at the end, my popup won't show, which perplexes me. At the end of what? Please give us a much more complete picture when you ask a question ... otherwise you are wasting yours and our time

Re: Where or when do I release this object from this action.

2009-02-27 Thread James Cicenia
Here is the scenario - If I put [mpvc release] at the end, my popup won't show, which perplexes me. This action pushes a view onto the existing view. It is a small view with a bunch of buttons. So, I am confused on where or when it should be released. thanks - j- On Feb 27, 2009, at 3:

Re: Where or when do I release this object from this action.

2009-02-27 Thread I. Savant
On Fri, Feb 27, 2009 at 4:43 PM, James Cicenia wrote: > Here is my code: > > - (void)monthFruitAction:(id)sender{ > >        MonthPickerViewController *mpvc = [[MonthPickerViewController > alloc]initWithNibName:@"MonthPicker"    bundle:nil]; >        [mpvc setMyParentController:self]; >        mp