Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with initWithFrame.



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.