[Mono-osx] [MonoMac] Forget to call super?

Duane Wandless duane at wandless.net
Sun Jan 16 09:26:59 EST 2011


I modified by xib and the message went away.

<object class="NSMutableDictionary" key="flattenedProperties">
   <object class="NSMutableArray" key="dict.values">
      <object class="NSMutableArray" key="dict.sortedKeys">
...
         <string>3.CustomClassName</string>
...
      <object class="NSMutableArray" key="dict.values">
...
         <string>MyBlackView</string>
...

I deleted the 3.CustomClassName and MyBlackView lines.  Note the order
matters so you have to remove the correct ones.

For me I'm taking a xib from an existing obj-c app and reverse engineering
it into MM.  So I'm not sure why MM is having this issue and the obj-c app
is not.

To reproduce create a MonoMac Project.  Edit the MainWindow.xib.  Add a
NSView to the window.  Modify its class to MyViewBlack.  Save and close IB.
 vi MainWindow.xib.  search for flattenedProperties.  Add the lines as
above.  Recompile the MM app.  Run it and you should see the warning.

Now how these CustomClassNames get into flattenedProperties and why this
causes the message I have not researched.

Duane



On Sat, Jan 15, 2011 at 11:37 AM, Miguel de Icaza <miguel at novell.com> wrote:

> Hello,
>
>    Can you provide a self-contained test case?
>
> Miguel
>
> On Sat, Jan 15, 2011 at 2:59 AM, kjpou <kjpou at pt.lu> wrote:
> > Hello everyone
> >
> > Whenever the NSView's initWithFrame method is called the following
> > message is displayed:
> >
> > 2011-01-15 08:52:21.960 KeyFrameMoveAView[8246:613]
> > KeyFrameView(0x613180) - NSView not correctly initialized. Did you
> > forget to call super?
> >
> > Here is the definition:
> >
> >         [Export("initWithFrame:")]
> >         public KeyFrameView(RectangleF frame) : base(frame)
> >         {
> >             // your code here
> >         }
> >
> > All the programs work without a problem but still get this message.
> > Also noticed it brought up on IRC as well.
> >
> > Is the definition not correct or should we be using a different method?
> >
> > There is another one that gives the same message but can not remember
> > the name right now.
> >
> > Kenneth
> > _______________________________________________
> > Mono-osx mailing list
> > Mono-osx at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-osx
> >
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110116/5887d792/attachment.html 


More information about the Mono-osx mailing list