• 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
NSWindow from code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWindow from code


  • Subject: NSWindow from code
  • From: Jan Bernard Marsman <email@hidden>
  • Date: Mon, 6 Apr 2009 19:40:32 +0200

Dear experts,
I can't seem to get the working of it, nor find the answer on the internet :

My goal is to have a panel with a slider when I click on a button from my
main app to change an image, say it's brightness.
So in the subclass of this image, I want some popup action with a nspanel

Any added default component to this does not show the user interaction
effects (buttondown for instance, or a (useless) sliding effect of the
knob).
The lifecycle of my object where I perform these calls lasts during the
entire apllication.

I am aware that actual functionality requires me to implement delegate
functions...
Who can pinpoint my missing link? Many thanks,

JB


>From my subclass of an NSView I call the (simplified) following:
- openHUD {
    [NSButton * button] = <alloc & init>
    [NSWindow * w] = <alloc & init with some style>
    ...
    [[w contentView] addSubview: <button>]
    NSWindowController * nw = [NSWindowController initWithWindow:w];
    [nw showWindow:nil]
}
_______________________________________________

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: NSWindow from code
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: NSString* kMyKey = @"aKey" vs #define MYKEY @"aKey"
  • Next by Date: Re: Non-pageable app
  • Previous by thread: Re: PDFView in layer backed view appears white
  • Next by thread: Re: NSWindow from code
  • Index(es):
    • Date
    • Thread