October, 2005

setAccessaryView: – Giving me headaches

So im working on an app which will need to have an extra view added to the save panel. Sure, easy, i can just use the setAccessaryView: method in NSSavePanel right?

Wrong, it wont work for me and i cant figure out why.

Ive created a new view in my mainmenu.nib file, hooked up an IBOutlet then used that outlet to reference in code like so:

NSSavePanel *savePanel = [NSSavePanel savePanel];
[savePanel setAccessoryView:exportSaveDialogExtension];

I run it, and get nothing. If i inspect the exportSaveDialogExtension outlet variable i find it is nil, so basically the view in the nib is not being loaded.

Ive got no idea why, all the examples ive found on the web seem to do it the same as me, ive tried the numerous cocoa mailing list archives and so far nothing. Spent the whole day so far working on this one single thing and its bugging me.

gah, and its hot…

I think ill go kill some stuff in World of Warcraft for a bit.

UPDATE:
Found out the problem (thanks to Luke), There was a chunk of code that was being called which loaded an external NIB, which of course meant the current outlet to the View was being nulled. In the end i moved the code to another file, so now the Export Manager handles it, and put the view in a seperate NIB to keep everything nice and clean.
:)

Posted in Geek / Apple Stuff No Comments »

Internship @ Apple

The internship process is getting really involved of late. Ive had a lot of interviews and chats with people from Safari, iChat, iCal. Its so awesome.

Some of the chats where done using iChat video chats and it worked really well. Its good to be able to use my iSight. I rarely get to use it with my regular contacts. :)

Hopefully the process will sort itself out soon and ill get me visa. I cant really organise flights until i know the exact dates of the visa.

Im excited though, should be an awesome experience. :D

Posted in Geek / Apple Stuff No Comments »

Happy Birthday To Melanie!

Its Melanies birthday today! Hooray!

Happy Birthday to my Melanie! :D

Posted in The One No Comments »