Creating balloon type of window in Cocoa

  • Hi guys/gals,

    I have created an cocoa application. My requirement is to show window
    which will behave same as Balloon in Windows.

    In mac, when user clicks on eject button, a transparent window having
    a eject icon appears in front of all windows & also does not cause
    loosing focus on earlier frontmost application. I want to create same
    type of window.

    Searched a lot but not getting anything. Please help.

    Thanks.
    Palav

    --
    There are many things in your life that will catch your eye but only a
    few will catch your heart....pursue those'
    .
  • Hi Palav,

    some Apple Sample shows how to draw an transparent window:

    http://developer.apple.com/samplecode/FunkyOverlayWindow/

    Maybe this is a starting point for you. Don't know about "Balloon in
    Windows", though ...

    Cheers,

    felix

    On Jun 13, 2007, at 11:41 AM, parag vibhute wrote:

    > Hi guys/gals,
    >
    > I have created an cocoa application. My requirement is to show window
    > which will behave same as Balloon in Windows.
    >
    > In mac, when user clicks on eject button, a transparent window having
    > a eject icon appears in front of all windows & also does not cause
    > loosing focus on earlier frontmost application. I want to create same
    > type of window.
    >
    > Searched a lot but not getting anything. Please help.
    >
    > Thanks.
    > Palav
    >
    >
    > --
    > There are many things in your life that will catch your eye but only a
    > few will catch your heart....pursue those'
    > .
  • Take a look at Growl. It supports several types of popups, including
    the one you described and it's under LGPL, meaning you can use it
    from commercial applications.

    On Jun 13, 2007, at 2:41 AM, parag vibhute wrote:

    > Hi guys/gals,
    >
    > I have created an cocoa application. My requirement is to show window
    > which will behave same as Balloon in Windows.
    >
    > In mac, when user clicks on eject button, a transparent window having
    > a eject icon appears in front of all windows & also does not cause
    > loosing focus on earlier frontmost application. I want to create same
    > type of window.
    >
    > Searched a lot but not getting anything. Please help.
    >
    > Thanks.
    > Palav
    >
    >
    > --
    > There are many things in your life that will catch your eye but only a
    > few will catch your heart....pursue those'
    > .
  • On Jun 13, 2007, at 2:41 AM, parag vibhute wrote:
    > I have created an cocoa application. My requirement is to show window
    > which will behave same as Balloon in Windows.

      There are no balloon windows on Mac OS X. What exactly do those
    balloon windows do, and what are you trying to use them for? There
    may be an equivalent mechanism on Mac OS, but I'd need more
    information to suggest one.

      I guess you have looked at help tags, alert panels and sheets, and
    Carbon's notification manager?

    Cheers,
    -- M. Uli Kusterer
    http://www.zathras.de
  • You might consider using Quartz Composer to generate a composition
    that you would embed in your app.  I would expect that doing all
    manner of balloons, text formatting, and other tricks would be darn
    near trivial in QC.  I had not realized until this week at WWDC what
    a powerful tool QC can be for Cocoa apps.

    Hal
  • Is this what you mean?

    http://safetyfork.net/2005/09/27/its-the-alpha/

    On Jun 13, 2007, at 5:41 AM, parag vibhute wrote:

    > Hi guys/gals,
    >
    > I have created an cocoa application. My requirement is to show window
    > which will behave same as Balloon in Windows.
    >
    > In mac, when user clicks on eject button, a transparent window having
    > a eject icon appears in front of all windows & also does not cause
    > loosing focus on earlier frontmost application. I want to create same
    > type of window.
    >
    > Searched a lot but not getting anything. Please help.
    >
    > Thanks.
    > Palav
    >
    >
    > --
    > There are many things in your life that will catch your eye but only a
    > few will catch your heart....pursue those'
    > .
  • You might also look into "Growl." It's open source and has a module
    which does exactly this sort of thing.

    On Nov 12, 2007, at 8:54 AM, Christopher Hickman wrote:

    > Is this what you mean?
    >
    > http://safetyfork.net/2005/09/27/its-the-alpha/
    >
    > On Jun 13, 2007, at 5:41 AM, parag vibhute wrote:
    >
    >> Hi guys/gals,
    >>
    >> I have created an cocoa application. My requirement is to show window
    >> which will behave same as Balloon in Windows.
    >>
    >> In mac, when user clicks on eject button, a transparent window having
    >> a eject icon appears in front of all windows & also does not cause
    >> loosing focus on earlier frontmost application. I want to create same
    >> type of window.
    >>
    >> Searched a lot but not getting anything. Please help.
    >>
    >> Thanks.
    >> Palav
    >>
    >>
    >> --
    >> There are many things in your life that will catch your eye but
    >> only a
    >> few will catch your heart....pursue those'
    >> .

  • Thanks Christopher for reply.
    This is surely what I need. Only change I require is that I require multiple
    lines support means if I enter newline character then that view should
    expand heightwise which is not happening in current code.

    Thanks again,
    Palav

    On Nov 12, 2007 10:24 PM, Christopher Hickman <tophu...> wrote:

    > Is this what you mean?
    >
    > http://safetyfork.net/2005/09/27/its-the-alpha/
    >
    > On Jun 13, 2007, at 5:41 AM, parag vibhute wrote:
    >
    >> Hi guys/gals,
    >>
    >> I have created an cocoa application. My requirement is to show window
    >> which will behave same as Balloon in Windows.
    >>
    >> In mac, when user clicks on eject button, a transparent window having
    >> a eject icon appears in front of all windows & also does not cause
    >> loosing focus on earlier frontmost application. I want to create same
    >> type of window.
    >>
    >> Searched a lot but not getting anything. Please help.
    >>
    >> Thanks.
    >> Palav
    >>
    >>
    >> --
    >> There are many things in your life that will catch your eye but only a
    >> few will catch your heart....pursue those'
    >> .
    >
    >

    --

    There are many things in your life that will catch your eye but only a few
    will catch your heart....pursue those'.
previous month june 2007 next month
MTWTFSS
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  
Go to today