• 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: How To Increment CALayer Retain Count?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How To Increment CALayer Retain Count?


  • Subject: Re: How To Increment CALayer Retain Count?
  • From: Jeffrey Walton <email@hidden>
  • Date: Thu, 07 Apr 2011 16:44:13 -0400

On Thu, Apr 7, 2011 at 8:30 AM, Mike Abdullah <email@hidden> wrote:
> Have you run the static analyser?
Yes - "Other C Flags" are '-g3 -Wall -Wextra' (maximum GCC analysis),
and Clang is On.

> Have you tested using the Zombies Instrument?
I believe so. The executable's environment is "NSZombieEnable = YES"
and "NSAutoreleaseFreedObjectCheckEnabled = YES".

How do experienced folks layout their interfaces? Is Interface Builder
used? I seem to recall Mark and LeMarche stating that Apple recommends
IB. But I seem to be having chronic problems with it (3.2.5 and
3.2.6).

> On 7 Apr 2011, at 12:15, Jeffrey Walton wrote:
>
>> Hi All,
>>
>> I have a UIViewController as follows. Its just an "About Box", with a
>> navigation bar and button (to cancel) and two labels.
>>
>> The controller was built with Interface Builder. The Navigation Bar
>> and two labels are IBOutlets. According to IB, they are properly
>> connected. I did not know what to connect the Navigation Items outlet
>> to, so they are currently unconnected (formerly, they were connected
>> to File's Owner which did not help).
>>
>> + File's Owner
>> + First Responder
>> + View
>>  + Navigation Bar
>>    + Navigation Item (Title)
>>      + Bar Button
>>  + Label 1
>>  + Label 2
>>
>> When the app starts, I tap a button and bring up the About box. Then I
>> dismiss it. That is it.
>>
>> When the view is dismissed by tapping Cancel, NSZombie reports:
>>    -[UINavigationBar willMoveToSuperview:]: message sent to
>> deallocated instance
>>
>> If I add an extra [???] retain to the navigationBar in ViewDidLoad,
>> NSZombie Reports:
>>    -[CALayer release]: message sent to deallocated instance
>>
>> (1) How do I get to the CALayer and add an extra retain to stop this crash?
>> (2) What am I missing WRT retain counts? Why are these retain counts
>> so messed up?
>>
>> Jeff
_______________________________________________

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: How To Increment CALayer Retain Count?
      • From: Mike Abdullah <email@hidden>
    • Re: How To Increment CALayer Retain Count?
      • From: Quincey Morris <email@hidden>
References: 
 >How To Increment CALayer Retain Count? (From: Jeffrey Walton <email@hidden>)
 >Re: How To Increment CALayer Retain Count? (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Localized sorting of a Core Data entity
  • Next by Date: Re: Are the progress spinner images publically available?
  • Previous by thread: Re: How To Increment CALayer Retain Count?
  • Next by thread: Re: How To Increment CALayer Retain Count?
  • Index(es):
    • Date
    • Thread