problem with initWithFrame.
problem with initWithFrame.
- Subject: problem with initWithFrame.
- From: Manish Pattath <email@hidden>
- Date: Tue, 29 Apr 2003 05:37:08 -0700 (PDT)
Hi,
1)In my sample application in Cocoa, I am creating a
matrix and in it NSButtonCells dynamically based on
the number of images to be displayed. I have used
custom view and then subclassed it from NSScrollView.
I do the entire stuff in initWithFrame() function.
the problem i have seen is if I return the matrix
created from the function initWithFrame(), then all
the thumbnails are shown properly. But when self is
returned from initWithFrame() then nothing is
displayed.
Moreover one more thing noted is is matrix is returned
from initWithFrame() then control does not come to
awakeFromNib() function otherwise if self is returned,
the control comes to awakeFromnib().
2)The matrix that is created dynamcially in the first
point cannot be accessed in any other function of the
same class. the debugger shows it as Outofscope.
Does any one know what could be causing this
behaviour?
Thanks for reading me.
with rgds,
pmanish
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.