Visibility of Cocoa objects

Ask a Question related to Mac Programming, Design and Development.

  1. #1

    Default Visibility of Cocoa objects

    Hi there,

    I'm just switching to cocoa, so maybe I'm missing something easy there.

    I'm looking for a way to show/hide a NSControl or a NSView. I've ran into
    the setTransparent method of NSCell, but it does not remove the view from
    the hierarchy, it's still there and active.

    What I'm looking for is the equivalent of SetControlVisibility and
    HIViewSetVisible.

    Hope I'm just blind.

    Thanks

    Eric

    Eric VERGNAUD Guest

  2. Similar Questions and Discussions

    1. Settingn form objects visibility / requirement
      Two questions/issues. See code below for reference. 1) When using the onclick event to set the cfinput 'enddate' to visible=false only the...
    2. Shared Objects, visibility preperty
      I have a slide show working through the FlashCom. The common idea is that when I move an object in one browser then in all the other browsers...
    3. Bit shifts in Cocoa
      Does anyone know how to do bit shifts in Cocoa? I have declared an integer and I want to shift it one bit to the right (same as dividing by 2). ...
    4. Q About Cocoa & CF Prefs..
      In article <no-EA814A.20172229072003@netnews.upenn.edu>, Mark Haase <no@spam.please> wrote: Not only that, if the same preference file is...
    5. Cocoa Filemaker
      "Edward Smith" <esmith@thegoodstuff.se> wrote in message news:BB44ABA1.4676%esmith@thegoodstuff.se... I presume so. There was a statement from...
  3. #2

    Default Re: Visibility of Cocoa objects

    In <BB87DFD3.11EB8%eric.vergnaud@wanadoo.fr> Eric VERGNAUD wrote:
    > Hi there,
    >
    > I'm just switching to cocoa, so maybe I'm missing something easy there.
    >
    > I'm looking for a way to show/hide a NSControl or a NSView. I've ran
    > into the setTransparent method of NSCell, but it does not remove the
    > view from the hierarchy, it's still there and active.
    >
    > What I'm looking for is the equivalent of SetControlVisibility and
    > HIViewSetVisible.
    >
    > Hope I'm just blind.
    You have two choices. (1) Wait for Panther. (2) Rip the control right
    out of the window with removeFromSuperview. Remember to retain it first
    or you'll lose it. m.

    --
    matt neuburg, phd = [email]matt@tidbits.com[/email], [url]http://www.tidbits.com/matt[/url]
    REALbasic: The Definitive Guide! 2nd edition!
    [url]http://www.amazon.com/exec/obidos/ASIN/0596001770/somethingsbymatt[/url]
    Subscribe to TidBITS. It's free and smart.
    matt neuburg Guest

  4. #3

    Default Re: Visibility of Cocoa objects

    dans l'article [email]20030912115656858-0700@news.la.sbcglobal.net[/email], matt neuburg à
    [email]matt@tidbits.com[/email] a écrit le 12/09/03 20:55*:
    > In <BB87DFD3.11EB8%eric.vergnaud@wanadoo.fr> Eric VERGNAUD wrote:
    >> Hi there,
    >>
    >> I'm just switching to cocoa, so maybe I'm missing something easy there.
    >>
    >> I'm looking for a way to show/hide a NSControl or a NSView. I've ran
    >> into the setTransparent method of NSCell, but it does not remove the
    >> view from the hierarchy, it's still there and active.
    >>
    >> What I'm looking for is the equivalent of SetControlVisibility and
    >> HIViewSetVisible.
    >>
    >> Hope I'm just blind.
    >
    > You have two choices. (1) Wait for Panther. (2) Rip the control right
    > out of the window with removeFromSuperview. Remember to retain it first
    > or you'll lose it. m.
    Thanks. So I'm not blind. But now I wonder why this wasn't implemented in
    Cocoa from the beginning...

    Eric

    Eric VERGNAUD Guest

  5. #4

    Default Re: Visibility of Cocoa objects

    In article <20030912115656858-0700@news.la.sbcglobal.net>,
    matt neuburg <matt@tidbits.com> wrote:
    > In <BB87DFD3.11EB8%eric.vergnaud@wanadoo.fr> Eric VERGNAUD wrote:
    > > I'm looking for a way to show/hide a NSControl or a NSView. I've ran
    > > into the setTransparent method of NSCell, but it does not remove the
    > > view from the hierarchy, it's still there and active.
    > >
    >
    > You have two choices. (1) Wait for Panther.
    What's the Panther way?

    meeroh

    --
    If this message helped you, consider buying an item
    from my wish list: <http://web.meeroh.org/wishlist>

    Miro Jurisic Guest

  6. #5

    Default Re: Visibility of Cocoa objects

    In <macdev-905D66.16442512092003@senator-bedfellow.mit.edu> Miro Jurisic
    wrote:
    > In article <20030912115656858-0700@news.la.sbcglobal.net>,
    > matt neuburg <matt@tidbits.com> wrote:
    >
    >> In <BB87DFD3.11EB8%eric.vergnaud@wanadoo.fr> Eric VERGNAUD wrote:
    >> > I'm looking for a way to show/hide a NSControl or a NSView. I've
    >> > ran into the setTransparent method of NSCell, but it does not
    >> > remove the view from the hierarchy, it's still there and active.
    >> >
    >>
    >> You have two choices. (1) Wait for Panther.
    >
    > What's the Panther way?
    You know I can't tell you that. m.

    --
    matt neuburg, phd = [email]matt@tidbits.com[/email], [url]http://www.tidbits.com/matt[/url]
    REALbasic: The Definitive Guide! 2nd edition!
    [url]http://www.amazon.com/exec/obidos/ASIN/0596001770/somethingsbymatt[/url]
    Subscribe to TidBITS. It's free and smart.
    matt neuburg Guest

  7. #6

    Default Re: Visibility of Cocoa objects

    In article <20030913092749837-0700@news.la.sbcglobal.net>,
    matt neuburg <matt@tidbits.com> wrote:
    > In <macdev-905D66.16442512092003@senator-bedfellow.mit.edu> Miro Jurisic
    > wrote:
    > > In article <20030912115656858-0700@news.la.sbcglobal.net>,
    > > matt neuburg <matt@tidbits.com> wrote:
    > >
    > >> In <BB87DFD3.11EB8%eric.vergnaud@wanadoo.fr> Eric VERGNAUD wrote:
    > >> > I'm looking for a way to show/hide a NSControl or a NSView. I've
    > >> > ran into the setTransparent method of NSCell, but it does not
    > >> > remove the view from the hierarchy, it's still there and active.
    > >> >
    > >>
    > >> You have two choices. (1) Wait for Panther.
    > >
    > > What's the Panther way?
    >
    > You know I can't tell you that. m.
    Whatever, dude. I don't see how giving me a method name would break the NDA but
    telling me that the method exists wouldn't. OTOH, it's not worth my time to
    argue with you about this, I can find plenty of people who can just tell me the
    answer.

    meeroh

    --
    If this message helped you, consider buying an item
    from my wish list: <http://web.meeroh.org/wishlist>

    Miro Jurisic Guest

  8. #7

    Default Re: Visibility of Cocoa objects

    In <macdev-91894E.12483313092003@senator-bedfellow.mit.edu> Miro Jurisic
    wrote:
    > In article <20030913092749837-0700@news.la.sbcglobal.net>,
    > matt neuburg <matt@tidbits.com> wrote:
    >
    >> In <macdev-905D66.16442512092003@senator-bedfellow.mit.edu> Miro
    >> Jurisic wrote:
    >> > In article <20030912115656858-0700@news.la.sbcglobal.net>,
    >> > matt neuburg <matt@tidbits.com> wrote:
    >> >
    >> >> In <BB87DFD3.11EB8%eric.vergnaud@wanadoo.fr> Eric VERGNAUD wrote:
    >> >> > I'm looking for a way to show/hide a NSControl or a NSView. I've
    >> >> > ran into the setTransparent method of NSCell, but it does not
    >> >> > remove the view from the hierarchy, it's still there and active.
    >> >> >
    >> >>
    >> >> You have two choices. (1) Wait for Panther.
    >> >
    >> > What's the Panther way?
    >>
    >> You know I can't tell you that. m.
    >
    > I don't see how giving me a method name would break
    > the NDA but telling me that the method exists wouldn't.
    I didn't say any method exists. m.

    --
    matt neuburg, phd = [email]matt@tidbits.com[/email], [url]http://www.tidbits.com/matt[/url]
    REALbasic: The Definitive Guide! 2nd edition!
    [url]http://www.amazon.com/exec/obidos/ASIN/0596001770/somethingsbymatt[/url]
    Subscribe to TidBITS. It's free and smart.
    matt neuburg Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139