delegates and structs

Joseph Crawford codebowl at gmail.com
Wed Jul 23 12:20:49 PDT 2008


Not to sound arrogant or demeaning but did you try checking Google or  
the docs at developer.apple.com for how to use NSSize?
I remembering struggling with that same task but conquered it with the  
help of google and the docs.

I think digging out the answer helped me more than someone telling me  
how to do it.

Joseph Crawford

On Jul 23, 2008, at 3:03 PM, Lewis Foss wrote:

> Sorry about my ignorance of how this group works and thanks for the  
> prompt replies.
> I am working through Hillegass's book and the first challenge from  
> Cpt 5. (page 109 of the 3rd edition)
> I have worked pretty hard on this but am really new to Cocoa, so  
> here is my situation.
> It is exactly like what was described in the post by Eric 3 years ago.
> I am currently connecting the window in the MainMenu.xib window of  
> IB by dragging the delegate to my controller.
> I am declaring the (NSSize)windowWillResize:(NSWindow *)sender  
> toSize:(NSSize)frameSize in the header file and trying to use in in  
> the implemention file. I can post my files or the project is that is  
> what I should do.
> The program compiles without error or warnings, but the function  
> never gets called.
> As to the NSSize struct, I do not know how to implement it.
> Thanks again. Please let me know how to better avail myself of your  
> generosity and how to use this forum.
> Lewis
>
> _______________________________________________
> MacOSX-dev mailing list
> MacOSX-dev at omnigroup.com
> http://www.omnigroup.com/mailman/listinfo/macosx-dev



More information about the MacOSX-dev mailing list