BSD

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • IBPalette Custom Container view

    0 answers - 1972 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    At 00:57 -0700 20/5/06, cocoa-dev-request (AT) lists (DOT) apple.com wrote:
    >From: Ricky Sharp <rsharp (AT) mac (DOT) com>
    >References: <@ambrosiasw.com>
    >In-Reply-To: <@ambrosiasw.com>
    >Date: Fri, 19 May 2006 22:24:49 -0500
    >Message-ID: <@mac.com>
    >Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
    >

    May 19, 2006, at 9:18 PM, Dominic Feira wrote:
    >>
    >>I found some sample code online that implies that there is a lot of extra work to do in order to create container views in IB. Is this the case? I hope not.

    >
    >It's not a lot of code; you just have to implement several methods:
    >
    >- (BL)ibIsContainer
    >{

    return YES;
    >}
    >
    >- (BL)ibSupportsISelection
    >{

    return YES;
    >}
    >
    >- (BL)ibDrawFrameWhileResizing
    >{

    return YES;
    >}
    >
    >- (BL)ibSupportsLiveResize
    >{

    return YES;
    >}
    >
    >- (BL)ibShouldShowContainerGuides
    >{

    return YES;
    >}
    >
    >- (BL)canEditSelf
    >{

    return YES;
    >}
    >
    >- (id)ibNearestTargetForDrag
    >{

    return self;
    >}
    >

    course adjust the returned BL values as needed for your particular situation.
    FWIW, I found that implementing the (non-documented) method:
    - (BL)editorHandlesCaches
    {
    return YES;
    }
    fixed some subview redrawing problems. Haven't tried removing it for the latest IB releases, though.
    There must some other undocumented twiddling going on, as nesting several such custom views doesn't work as smoothly as it does with Apple's views

Re: IBPalette Custom Container view


max 4000 letters.
Your nickname that display:
In order to stop the spam: 3 + 3 =
QUESTION ON "BSD"

EMSDN.COM