• 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
Problem with subview creation or it in somewhere else
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with subview creation or it in somewhere else


  • Subject: Problem with subview creation or it in somewhere else
  • From: "Dan Rodricks" <email@hidden>
  • Date: Fri, 2 Jun 2006 17:56:38 +0530

Hello all,
Sorry to ask this rubbish question , i am new to cocoa.
I am facing some problems in rotation.I want to rotate an object in an
NSView,for that i am trying to create subviews to the drawing bound.I gave
the following code to perfom.But still its frustrating.
NSArray *graphics=[self selectedGraphics];
 NSRect rect=[[graphics objectAtIndex:0] bounds];

 NSView *view =[[NSView allocWithZone:NULL] init];
 [view setFrame:rect];
 [view setFrameRotation:-45];

 [self setNeedsDisplay:YES];

Thanks and regards,
Dan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Newbie error
  • Next by Date: Crazy NSTreeController
  • Previous by thread: Re: Disabling clickable header in an NSTableView
  • Next by thread: Re: Problem with subview creation or it in somewhere else
  • Index(es):
    • Date
    • Thread