• 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: [Moderator] Re: Option-click on my app hides the other app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Moderator] Re: Option-click on my app hides the other app


  • Subject: Re: [Moderator] Re: Option-click on my app hides the other app
  • From: Chase <email@hidden>
  • Date: Thu, 11 Aug 2005 06:17:14 -0500

On Aug 11, 2005, at 2:54 AM, mmalcolm crawford wrote:

Asking how to do something even if it might in some way contravene UI guidelines is on-topic provided that it's relevant to Cocoa.


i'll second that.

i'd like to add that all too often, we tend to jump on this bandwagon of telling people they shouldn't do something that they've asked how to do, and in the process forget to answer their actual question.

there's nothing wrong with a little constructive criticism, but it should be a footnote after or disclaimer before an actual answer to the poster's question.

they did, after all, ask for help, not a critique.

that being said, ben, i would certainly try eric's suggestion. i've just finished reading up a little on kUtilityWindowClass, and it sounds like it might do the trick.

one caveat with this solution is that if you have questions about it, you may have a difficult time getting answers on either the carbon- dev list or the cocoa-dev list, since it's a little of both. it shouldn't be too tricky though. just remember to add the Carbon framework to your project and import <Carbon/Carbon.h> wherever necessary and you may have to read up on CreateNewWindow(). I believe it should look something like:

NSWindow * wincocoa;
WindowRef wincarbon = NULL;
Rect rect;
SetRect(&rect, 0, 0, 400, 400);
OSStatus problem = CreateNewWindow(kUtilityWindowClass, (attr1| attr2 /* |etc... */), &rect, &wincarbon);
if (!problem) {
wincocoa = [[NSWindow alloc] initWithWindowRef:wincarbon];
}
// from this point on, you just use your NSWindow instance like you normally would.


good luck.

- chase




_______________________________________________ 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
  • Follow-Ups:
    • Re: Option-click on my app hides the other app
      • From: Ben Haller <email@hidden>
References: 
 >Option-click on my app hides the other app (From: Ben Haller <email@hidden>)
 >Re: Option-click on my app hides the other app (From: Steve Bird <email@hidden>)
 >Re: Option-click on my app hides the other app (From: Ben Haller <email@hidden>)
 >Re: Option-click on my app hides the other app (From: email@hidden)
 >Re: Option-click on my app hides the other app (From: Ben Haller <email@hidden>)
 >Re: Option-click on my app hides the other app (From: Ted Thibodeau Jr <email@hidden>)
 >[Moderator] Re: Option-click on my app hides the other app (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Distributed Objects between cats
  • Next by Date: Re: Addressing Relationships in awakeFromInsert
  • Previous by thread: [Moderator] Re: Option-click on my app hides the other app
  • Next by thread: Re: Option-click on my app hides the other app
  • Index(es):
    • Date
    • Thread