• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Where or when do I release this object from this action.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: Where or when do I release this object from this action.
  • From: James Cicenia <email@hidden>
  • Date: Fri, 27 Feb 2009 15:57:23 -0600

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:50 PM, I. Savant wrote:

On Fri, Feb 27, 2009 at 4:43 PM, James Cicenia <email@hidden> 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,66,260,258);
       [fruitTypeView addSubview:mpvc.view];
}

How should I release mpvc ?

[mpvc release]; ???

 Seriously, you'll need to be more specific about what you're asking.
Do you mean you want to know *when* to release it? It's difficult to
say without more detail about what your intentions are in your
specific project.

--
I.S.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Where or when do I release this object from this action.
      • From: Shawn Erickson <email@hidden>
References: 
 >Where or when do I release this object from this action. (From: James Cicenia <email@hidden>)
 >Re: Where or when do I release this object from this action. (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Where or when do I release this object from this action.
  • Next by Date: Weird "Ignoring bogus layer size" error using Collection View
  • Previous by thread: Re: Where or when do I release this object from this action.
  • Next by thread: Re: Where or when do I release this object from this action.
  • Index(es):
    • Date
    • Thread