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
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
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
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
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
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
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:
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