Professional Web Applications Themes

Visibility of Cocoa objects - Mac Programming

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...

  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. #2

    Default Re: Visibility of Cocoa objects

    In <BB87DFD3.11EB8%eric.vergnaudwanadoo.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]matttidbits.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

  3. #3

    Default Re: Visibility of Cocoa objects

    dans l'article [email]20030912115656858-0700news.la.sbcglobal.net[/email], matt neuburg à
    [email]matttidbits.com[/email] a écrit le 12/09/03 20:55:
    > In <BB87DFD3.11EB8%eric.vergnaudwanadoo.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

  4. #4

    Default Re: Visibility of Cocoa objects

    In article <20030912115656858-0700news.la.sbcglobal.net>,
    matt neuburg <matttidbits.com> wrote:
    > In <BB87DFD3.11EB8%eric.vergnaudwanadoo.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

  5. #5

    Default Re: Visibility of Cocoa objects

    In <macdev-905D66.16442512092003senator-bedfellow.mit.edu> Miro Jurisic
    wrote:
    > In article <20030912115656858-0700news.la.sbcglobal.net>,
    > matt neuburg <matttidbits.com> wrote:
    >
    >> In <BB87DFD3.11EB8%eric.vergnaudwanadoo.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]matttidbits.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

  6. #6

    Default Re: Visibility of Cocoa objects

    In article <20030913092749837-0700news.la.sbcglobal.net>,
    matt neuburg <matttidbits.com> wrote:
    > In <macdev-905D66.16442512092003senator-bedfellow.mit.edu> Miro Jurisic
    > wrote:
    > > In article <20030912115656858-0700news.la.sbcglobal.net>,
    > > matt neuburg <matttidbits.com> wrote:
    > >
    > >> In <BB87DFD3.11EB8%eric.vergnaudwanadoo.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

  7. #7

    Default Re: Visibility of Cocoa objects

    In <macdev-91894E.12483313092003senator-bedfellow.mit.edu> Miro Jurisic
    wrote:
    > In article <20030913092749837-0700news.la.sbcglobal.net>,
    > matt neuburg <matttidbits.com> wrote:
    >
    >> In <macdev-905D66.16442512092003senator-bedfellow.mit.edu> Miro
    >> Jurisic wrote:
    >> > In article <20030912115656858-0700news.la.sbcglobal.net>,
    >> > matt neuburg <matttidbits.com> wrote:
    >> >
    >> >> In <BB87DFD3.11EB8%eric.vergnaudwanadoo.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]matttidbits.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

Similar Threads

  1. cfselect visibility
    By hollyjones in forum Coldfusion Flash Integration
    Replies: 0
    Last Post: August 11th, 09:04 PM
  2. Set visibility via asp
    By mr_tim in forum Macromedia Flash Data Integration
    Replies: 3
    Last Post: May 25th, 06:50 AM
  3. Settingn form objects visibility / requirement
    By Robert S. in forum Coldfusion Flash Integration
    Replies: 0
    Last Post: April 2nd, 02:34 AM
  4. Shared Objects, visibility preperty
    By VardHovhann in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: March 10th, 06:51 PM
  5. Model visibility
    By HallyL in forum Macromedia Director 3D
    Replies: 3
    Last Post: October 4th, 01:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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