Why is NSWindow's setCanBeVisibleOnAllSpaces: deprecated?

  • Hi List,

    I'm currently working on an Application, that uses Animation for a
    kind of HUD Window. The Window is visible on all spaces. When hovering
    with the mouse over the window and waiting for some time, the
    animation starts. But after switching to another "Space" (I've spaces
    enabled.) The animation does not occur. Switching back to the space
    where the App was started and the animation first happened, the
    animation works fine again.

    Since I want to have the animation occurring on every Space, I found
    the method "setCanBeVisibleOnAllSpaces". After calling the Method with
    YES. The Animations are working on every space: As expected! But
    during compilation I get the warning, that the Message is deprecated.
    Why is this? It does exactly what I need. Or is there a better solution?

    regards
    Joachim
  • On Nov 1, 2007, at 6:01 PM, Joachim Deelen wrote:

    > I'm currently working on an Application, that uses Animation for a
    > kind of HUD Window. The Window is visible on all spaces. When
    > hovering with the mouse over the window and waiting for some time,
    > the animation starts. But after switching to another "Space" (I've
    > spaces enabled.) The animation does not occur. Switching back to
    > the space where the App was started and the animation first
    > happened, the animation works fine again.
    >
    > Since I want to have the animation occurring on every Space, I
    > found the method "setCanBeVisibleOnAllSpaces". After calling the
    > Method with YES. The Animations are working on every space: As
    > expected! But during compilation I get the warning, that the
    > Message is deprecated. Why is this? It does exactly what I need. Or
    > is there a better solution?

    That method was replaced in alter seeds and GM by -[NSWindow
    setCollectionBehavior:].

    Jim
  • Check out NSWindow's setCollectionBehavior:. That's the supported equivalent of setCanBeVisibleOnAllSpaces:.

    Cheers,
    Chuck

    ----- Original Message ----
    From: Joachim Deelen <cocoa-dev...>
    To: Cocoa-Dev Mail <Cocoa-dev...>
    Sent: Thursday, November 1, 2007 3:01:43 PM
    Subject: Why is NSWindow's setCanBeVisibleOnAllSpaces: deprecated?

    Hi List,

    I'm currently working on an Application, that uses Animation for a
    kind of HUD Window. The Window is visible on all spaces. When hovering

    with the mouse over the window and waiting for some time, the
    animation starts. But after switching to another "Space" (I've spaces
    enabled.) The animation does not occur. Switching back to the space
    where the App was started and the animation first happened, the
    animation works fine again.

    Since I want to have the animation occurring on every Space, I found
    the method "setCanBeVisibleOnAllSpaces". After calling the Method with

    YES. The Animations are working on every space: As expected! But
    during compilation I get the warning, that the Message is deprecated.
    Why is this? It does exactly what I need. Or is there a better
    solution?

    regards
    Joachim

    __________________________________________________
    Do You Yahoo!?
    Tired of spam?  Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com
  • Thanks to all that works!

    Am 01.11.2007 um 23:33 schrieb Charles Steinman:

    > Check out NSWindow's setCollectionBehavior:. That's the supported
    > equivalent of setCanBeVisibleOnAllSpaces:.
    >
    >
    > Cheers,
    > Chuck
    >
    > ----- Original Message ----
    > From: Joachim Deelen <cocoa-dev...>
    > To: Cocoa-Dev Mail <Cocoa-dev...>
    > Sent: Thursday, November 1, 2007 3:01:43 PM
    > Subject: Why is NSWindow's setCanBeVisibleOnAllSpaces: deprecated?
    >
    >
    > Hi List,
    >
    > I'm currently working on an Application, that uses Animation for a
    > kind of HUD Window. The Window is visible on all spaces. When hovering
    >
    > with the mouse over the window and waiting for some time, the
    > animation starts. But after switching to another "Space" (I've spaces
    > enabled.) The animation does not occur. Switching back to the space
    > where the App was started and the animation first happened, the
    > animation works fine again.
    >
    > Since I want to have the animation occurring on every Space, I found
    > the method "setCanBeVisibleOnAllSpaces". After calling the Method with
    >
    > YES. The Animations are working on every space: As expected! But
    > during compilation I get the warning, that the Message is deprecated.
    > Why is this? It does exactly what I need. Or is there a better
    > solution?
    >
    > regards
    > Joachim
    >
    >
    >
    >
    > __________________________________________________
    > Do You Yahoo!?
    > Tired of spam?  Yahoo! Mail has the best spam protection around
    > http://mail.yahoo.com
previous month november 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