• 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
static Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

static Objects


  • Subject: static Objects
  • From: Agha Khan <email@hidden>
  • Date: Fri, 31 Jul 2009 17:46:10 -0700

HI:

I know it is wrong but looking the right way to do it. 
I would like to save it so I could call it from anywhere.

You help will be very much appreciated. 

-Agha

static CGRect nutVerRect[7];

+ (CGRect*) VerticalRect:(int) Index
{
if (Index < 0 || Index > 6)
return nil;
nutVerRect[0] = CGRectMake(69,118,94,94);
nutVerRect[1] = CGRectMake(156,118,94,94);
nutVerRect[2] = CGRectMake(26,194,94,94);
nutVerRect[3] = CGRectMake(113,194,94,94);
nutVerRect[4] = CGRectMake(200,194,94,94);
nutVerRect[5] = CGRectMake(69,270,94,94);
nutVerRect[6] = CGRectMake(156,270,94,94);


return &nutVerRect[Index];
}
 _______________________________________________
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: static Objects
      • From: Steve Christensen <email@hidden>
  • Prev by Date: Xcode SCM subversion removing a directory
  • Next by Date: Re: static Objects
  • Previous by thread: Xcode SCM subversion removing a directory
  • Next by thread: Re: static Objects
  • Index(es):
    • Date
    • Thread