• 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: Overlapping Views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overlapping Views


  • Subject: Re: Overlapping Views
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Fri, 23 Nov 2007 18:16:56 +0100


This particular app would be a full-screen app. The main window, covering most if not all of the screen, would have a background image with other controls directly on top of it. They would be customized to the extent I could in IB & sub-classed if necessary, which I know that I will have to do to achieve the behavior & appearance I want in some. Since the NSImage view doesn't support sub-views (I'm assuming it doesn't since IB won't let me put any in it), I was trying to have the NSImage view behind the other views so I wouldn't have to customize a NSView & draw the image manually.


This will be my very first app written in Cocoa/Obj-C, and I'm very used to having compositing views in Carbon. I won't be overlapping views like this though if it isn't really supported, since I don't want my app to possibly have erratic drawing/refresh behavior.


Regards, David Alger

Assumption are evil. AFAK Image view should support subview.
IB will not let you add subview, but you can replace your image view by a custom view. Set the class of the custom view to NSImageView, and set the image you want to display in -awakeFromNib.
That's the easiest way i see to workaround this IB limitation.


Jean-Daniel


_______________________________________________

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: Overlapping Views
      • From: Uli Kusterer <email@hidden>
    • Re: Overlapping Views
      • From: David Alger <email@hidden>
References: 
 >Overlapping Views (From: David Alger <email@hidden>)
 >Re: Overlapping Views (From: Jon Hess <email@hidden>)
 >Re: Overlapping Views (From: Alastair Houghton <email@hidden>)
 >Re: Overlapping Views (From: David Alger <email@hidden>)

  • Prev by Date: Re: Overlapping Views
  • Next by Date: Re: -[NSManagedObjectContext save:] fails but gives no NSError
  • Previous by thread: Re: Overlapping Views
  • Next by thread: Re: Overlapping Views
  • Index(es):
    • Date
    • Thread