I'm new to Cocoa.
And I'm working on extending a project's function.
The original function of that project is open a file and display the file icon in a nsbox(which is in nswindow?)
And when I click the menu to open, it works fine.
But when I open the file programmatically(using the same openfile function which the menu called), it don't show the file icon.
[[self.window animator] setFrame:frame display:YES animate:YES];
the frame is correct, but it doesn't changed.
Is there anything I missed?
You can comment so I can provide more detail.
Thank you all.