Issue with custom view in Interface Builder 3?

  • Hi,

    I just got Leopard today, and I'm eager to get my first
    CollectionView app working.  However, I'm having trouble with what I
    think is IB3:  Twice now have followed the following steps, with odd
    results each time:

    1.  Create a new collection view in a HUD in IB3.
    2.  Instantiate a collection view item controller also.
    3.  Instantiate a custom NSView.
    4.  Drag an IKImageView into the custom view.

    Here's where the strangeness starts:  Not only can I not drag it
    around the view like I could normally (or is this just  something new
    in IB3?), but sometimes doing so will produce weird dragging
    artifacts.  Even stranger, I can still move the image view around no
    problem using the arrow keys on my keyboard.

    I can't find any IB attribute that would cause this to happen... does
    anyone have any ideas?

    Thanks,

    Sam Stigler
  • I'm on my iPhone right now, so I can't really test your issue exactly,
    but I've had subviews act funny in IB3 also, especially if they are
    hinted for CoreAnimation. Seems to be a bug, I will install GM tonight
    and play with it.

    Sent from my iPhone

    On Oct 26, 2007, at 7:46 PM, Sam Stigler <sstigler_lists...> wrote:

    > Hi,
    >
    > I just got Leopard today, and I'm eager to get my first
    > CollectionView app working.  However, I'm having trouble with what I
    > think is IB3:  Twice now have followed the following steps, with odd
    > results each time:
    >
    > 1.  Create a new collection view in a HUD in IB3.
    > 2.  Instantiate a collection view item controller also.
    > 3.  Instantiate a custom NSView.
    > 4.  Drag an IKImageView into the custom view.
    >
    > Here's where the strangeness starts:  Not only can I not drag it
    > around the view like I could normally (or is this just  something
    > new in IB3?), but sometimes doing so will produce weird dragging
    > artifacts.  Even stranger, I can still move the image view around no
    > problem using the arrow keys on my keyboard.
    >
    > I can't find any IB attribute that would cause this to happen...
    > does anyone have any ideas?
    >
    >
    > Thanks,
    >
    > Sam Stigler
  • Okay; thanks.  I'll probably file a bug later tonight.

    Sam

    On Oct 26, 2007, at 8:06 PM, Colin Cornaby wrote:

    > I'm on my iPhone right now, so I can't really test your issue
    > exactly, but I've had subviews act funny in IB3 also, especially if
    > they are hinted for CoreAnimation. Seems to be a bug, I will install
    > GM tonight and play with it.
    >
    > Sent from my iPhone
    >
    > On Oct 26, 2007, at 7:46 PM, Sam Stigler <sstigler_lists...>
    > wrote:
    >
    >> Hi,
    >>
    >> I just got Leopard today, and I'm eager to get my first
    >> CollectionView app working.  However, I'm having trouble with what
    >> I think is IB3:  Twice now have followed the following steps, with
    >> odd results each time:
    >>
    >> 1.  Create a new collection view in a HUD in IB3.
    >> 2.  Instantiate a collection view item controller also.
    >> 3.  Instantiate a custom NSView.
    >> 4.  Drag an IKImageView into the custom view.
    >>
    >> Here's where the strangeness starts:  Not only can I not drag it
    >> around the view like I could normally (or is this just  something
    >> new in IB3?), but sometimes doing so will produce weird dragging
    >> artifacts.  Even stranger, I can still move the image view around
    >> no problem using the arrow keys on my keyboard.
    >>
    >> I can't find any IB attribute that would cause this to happen...
    >> does anyone have any ideas?
    >>
    >>
    >> Thanks,
    >>
    >> Sam Stigler
  • Andre,

    That worked!  All I had to do was turn on core animation for the
    IKImageView (even though the other views in the hierarchy didn't have
    it on in the first place), and it "magically" was able to move.  I,
    too, am a little disappointed that the final build has so many bugs in
    IB...

    Thanks,

    Sam

    On Oct 26, 2007, at 10:05 PM, Andre wrote:

    > When core animation is turned on in the view, (IKImageView) it
    > should be fine, but when CoreAnimation is turned on for the window
    > contents itself, or a superview of some other view, those artifacts
    > appear. Turning off core animation (wants layer option) for any
    > superviews, especially the window contents (click the window's
    > background) should alleviate that. Surprised its not fixed in the
    > final build...
    >
    > Andre
    >
    > On $BJ?@.(B 19/10/27, at 11:46, Sam Stigler wrote:
    >
    >> Hi,
    >>
    >> I just got Leopard today, and I'm eager to get my first
    >> CollectionView app working.  However, I'm having trouble with what
    >> I think is IB3:  Twice now have followed the following steps, with
    >> odd results each time:
    >>
    >> 1.  Create a new collection view in a HUD in IB3.
    >> 2.  Instantiate a collection view item controller also.
    >> 3.  Instantiate a custom NSView.
    >> 4.  Drag an IKImageView into the custom view.
    >>
    >> Here's where the strangeness starts:  Not only can I not drag it
    >> around the view like I could normally (or is this just  something
    >> new in IB3?), but sometimes doing so will produce weird dragging
    >> artifacts.  Even stranger, I can still move the image view around
    >> no problem using the arrow keys on my keyboard.
    >>
    >> I can't find any IB attribute that would cause this to happen...
    >> does anyone have any ideas?
    >>
    >>
    >> Thanks,
    >>
    >> Sam Stigler
    >
  • Glad it worked!
    I battled with that since the early betas....... I'm currently
    downloading at 10kbs............ so somtime next week I should be able
    to test with the final leopard lol......
    I refuse to go out and buy it.

    Andre

    On $BJ?@.(B 19/10/27, at 15:51, Sam Stigler wrote:

    > Andre,
    >
    > That worked!  All I had to do was turn on core animation for the
    > IKImageView (even though the other views in the hierarchy didn't
    > have it on in the first place), and it "magically" was able to
    > move.  I, too, am a little disappointed that the final build has so
    > many bugs in IB...
    >
    > Thanks,
    >
    > Sam
    >
    >
    > On Oct 26, 2007, at 10:05 PM, Andre wrote:
    >
    >> When core animation is turned on in the view, (IKImageView) it
    >> should be fine, but when CoreAnimation is turned on for the window
    >> contents itself, or a superview of some other view, those artifacts
    >> appear. Turning off core animation (wants layer option) for any
    >> superviews, especially the window contents (click the window's
    >> background) should alleviate that. Surprised its not fixed in the
    >> final build...
    >>
    >> Andre
    >>
    >> On $BJ?@.(B 19/10/27, at 11:46, Sam Stigler wrote:
    >>
    >>> Hi,
    >>>
    >>> I just got Leopard today, and I'm eager to get my first
    >>> CollectionView app working.  However, I'm having trouble with what
    >>> I think is IB3:  Twice now have followed the following steps, with
    >>> odd results each time:
    >>>
    >>> 1.  Create a new collection view in a HUD in IB3.
    >>> 2.  Instantiate a collection view item controller also.
    >>> 3.  Instantiate a custom NSView.
    >>> 4.  Drag an IKImageView into the custom view.
    >>>
    >>> Here's where the strangeness starts:  Not only can I not drag it
    >>> around the view like I could normally (or is this just  something
    >>> new in IB3?), but sometimes doing so will produce weird dragging
    >>> artifacts.  Even stranger, I can still move the image view around
    >>> no problem using the arrow keys on my keyboard.
    >>>
    >>> I can't find any IB attribute that would cause this to happen...
    >>> does anyone have any ideas?
    >>>
    >>>
    >>> Thanks,
    >>>
    >>> Sam Stigler
    >>

previous month october 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 31        
Go to today