• 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
Simulator restriction?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Simulator restriction?


  • Subject: Simulator restriction?
  • From: Luca Ciciriello <email@hidden>
  • Date: Wed, 29 Feb 2012 10:16:00 +0100

Hi All. 
I've found a behavior discrepancy between simulator and device (iPad) when I use some graphic functionality and Grand Central Dispatch.

In example the following code: 

dispatch_apply(count, queue, ^(size_t i) {
                                                dot = [dots objectAtIndex:i];
                                                CGRect rectangle = CGRectMake(dot.x,dot.y,15.0f,15.0f); 
                                                CGContextSetFillColor(currentContext, CGColorGetComponents(dot.color));
                                                CGContextAddEllipseInRect(currentContext, rectangle); 
                                                CGContextFillEllipseInRect(currentContext, rectangle); 
                                                CGContextStrokePath(currentContext);
                                             });
works perfectly on device, but crashes on iPad simulator. 
Am I missing something or is a simulator restriction?

I'm using Xcode 4.3.

Thanks in advance for any answer.

Luca.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Simulator restriction?
      • From: David Duncan <email@hidden>
    • Re: Simulator restriction?
      • From: Roland King <email@hidden>
  • Prev by Date: Re: Missing libstdc++ symlink in the 10.6 SDK from Xcode 4.3?
  • Next by Date: Re: Xcode - An Apple Embarrassment
  • Previous by thread: Re: "Future" of llvm-gcc with regards to support (Jens Alfke)
  • Next by thread: Re: Simulator restriction?
  • Index(es):
    • Date
    • Thread