• 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
String Allocation inside drawRect:...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

String Allocation inside drawRect:...


  • Subject: String Allocation inside drawRect:...
  • From: Carlos Eduardo Mello <email@hidden>
  • Date: Wed, 15 Apr 2009 10:43:27 -0300

Hi,

I am calling the code below inside drawRect: in my custom view, so I can draw the string inside the view.
It fails miserably every time. Is it, by any, chance illegal to allocate a string inside drawRect?
Could anyone think of a reason twhy his call should just refuse to do its thing?



int degreeNumber = 1; NSString * label; label = [ NSString stringWithFormat:@"%d", degreeNumber ]; if(label) { ... }

_______________________________________________

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: String Allocation inside drawRect:...
      • From: Graham Cox <email@hidden>
    • Re: String Allocation inside drawRect:...
      • From: Graham Cox <email@hidden>
    • Re: String Allocation inside drawRect:...
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Table with all Key-Value Pairs
  • Next by Date: Re: String Allocation inside drawRect:...
  • Previous by thread: Re: sending email form Cocoa app using Mail
  • Next by thread: Re: String Allocation inside drawRect:...
  • Index(es):
    • Date
    • Thread