double-vision?

  • I'm having a hell of a time getting a new tool palette-type window to
    load. Looking at the File's Owner in IB, I notice that it has two
    entries for the same method:If I try to remove one connection, both get removed, so it's obviously
    a duplicate of some kind...
    I don't know how that's possible, and I can't see any explanation in
    the code. I put an NSLog in the WindowDidLoad for the palette, to
    report the number of cells, and it comes up with zero. So my window's
    supposed to be loaded, but it's invisible, and contains no cells!
    (cool.) My guess is that it's somehow reporting the cells in a
    different instance, or something like that. But actually, I'm just
    very confused.

    J.
  • hmm... weird. After doing a "Clean All" the window now loads properly,
    but I still have the double-entries for selectStaffToolAction. Any
    ideas?

    cheers,

    J.

    On 21-Dec-07, at 10:27 AM, James Maxwell wrote:

    > I'm having a hell of a time getting a new tool palette-type window
    > to load. Looking at the File's Owner in IB, I notice that it has two
    > entries for the same method:
    >
    > <Picture 1.png>
    >
    >
    > If I try to remove one connection, both get removed, so it's
    > obviously a duplicate of some kind...
    > I don't know how that's possible, and I can't see any explanation in
    > the code. I put an NSLog in the WindowDidLoad for the palette, to
    > report the number of cells, and it comes up with zero. So my
    > window's supposed to be loaded, but it's invisible, and contains no
    > cells! (cool.) My guess is that it's somehow reporting the cells in
    > a different instance, or something like that. But actually, I'm just
    > very confused.
    >
    > J.
  • ...oh, and my cell count NSLog now reports "StaffTool cells: 1627648"!!!
    Funky. The NSMatrix has only 3 cells - 1 row, 3 columns. Is this maybe
    some loop in the initialization that's just running to its maximum and
    stopping?

    J.

    On 21-Dec-07, at 10:34 AM, James Maxwell wrote:

    > hmm... weird. After doing a "Clean All" the window now loads
    > properly, but I still have the double-entries for
    > selectStaffToolAction. Any ideas?
    >
    > cheers,
    >
    > J.
    >
    >
    > On 21-Dec-07, at 10:27 AM, James Maxwell wrote:
    >
    >> I'm having a hell of a time getting a new tool palette-type window
    >> to load. Looking at the File's Owner in IB, I notice that it has
    >> two entries for the same method:
    >>
    >> <Picture 1.png>
    >>
    >>
    >> If I try to remove one connection, both get removed, so it's
    >> obviously a duplicate of some kind...
    >> I don't know how that's possible, and I can't see any explanation
    >> in the code. I put an NSLog in the WindowDidLoad for the palette,
    >> to report the number of cells, and it comes up with zero. So my
    >> window's supposed to be loaded, but it's invisible, and contains no
    >> cells! (cool.) My guess is that it's somehow reporting the cells in
    >> a different instance, or something like that. But actually, I'm
    >> just very confused.
    >>
    >> J.

  • On Dec 21, 2007, at 12:27 PM, James Maxwell wrote:

    > I'm having a hell of a time getting a new tool palette-type window
    > to load. Looking at the File's Owner in IB, I notice that it has two
    > entries for the same method:
    >
    > <Picture 1.png>
    >
    >
    > If I try to remove one connection, both get removed, so it's
    > obviously a duplicate of some kind...
    > I don't know how that's possible, and I can't see any explanation in
    > the code. I put an NSLog in the WindowDidLoad for the palette, to
    > report the number of cells, and it comes up with zero. So my
    > window's supposed to be loaded, but it's invisible, and contains no
    > cells! (cool.) My guess is that it's somehow reporting the cells in
    > a different instance, or something like that. But actually, I'm just
    > very confused.

    I've seen double-entries in my own IBPlug-Ins.  But, that pointed out
    a bug (copy-paste error) in my .classdescription files.  Two of those
    files contained the exact same meta-data for one of my classes.  This
    included the list of outlets.

    However, even after fixing that issue and doing clean builds, the
    problem still shows up.  It may be the case where IB is caching some
    of my info?
    ___________________________________________________________
    Ricky A. Sharp        mailto:<rsharp...>
    Instant Interactive(tm)  http://www.instantinteractive.com
previous month december 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