RE: protocol and properties

2010-11-28 Thread Mario Kušnjer
this: @interface ClassIWantToUseSomeProtocolMethodIn : NSObject MyProtocolThatIWantToImplement Bye Mario Kušnjer ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Question about NSScrollView

2010-02-19 Thread Mario Kušnjer
that but I don't know to make a use of them. If any one knows something which could point me to the solution it will be much appreciated. Thanks in advance. Bye. P.S. example picture in attachment inline: window.jpg Mario Kušnjer mario.kusn...@sb.t-com.hr +385957051982 mariokusnjer (at) Skype

Re: Question about NSScrollView

2010-02-19 Thread Mario Kušnjer
to be displayed. Correct ? Wrong? Thanks for suggestions. Mario Kušnjer mario.kusn...@sb.t-com.hr +385957051982 mariokusnjer (at) Skype ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: make connections without InterfaceBuilder

2010-02-15 Thread Mario Kušnjer
]; [[[NSApp mainWindow] contentView] addSubview:okButton]; [okButton release]; } - (void)dealloc { [NSApp setDelegate:nil]; [super dealloc]; } - (void)okButtonAction:(id)sender { NSBeep(); } @end Thanks. Mario Kušnjer mario.kusn...@sb.t-com.hr

Re: make connections without InterfaceBuilder

2010-02-09 Thread Mario Kušnjer
for the action, and from the AppDelegate to the control for the outlet. Sorry if you already know this. Ian. On 9/02/2010, at 5:03 PM, Jonathan Chacón wrote: Please, read first post. He specifically said that he is blind. Obviously, he can't control-drag. Mario Kušnjer mario.kusn...@sb.t-com.hr

Informations about Cocoa implementations of VDCP and MOS protocols

2009-12-08 Thread Mario Kušnjer
to implement these protocols in my Cocoa application. Thanks in advance. Bye Mario Kušnjer mario.kusn...@sb.t-com.hr +385957051982 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

copyWithZone - if anyone could explain this to me ?

2009-11-30 Thread Mario Kušnjer
of this implementation. Thanks for your answers in advance. Bye. Mario Kušnjer mario.kusn...@sb.t-com.hr +385957051982 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: copyWithZone - if anyone could explain this to me ?

2009-11-30 Thread Mario Kušnjer
cell-image is semantically identical to (*cell).image. That is, it's directly accessing the instance variable image of the object cell This part is what trouble's me. cell-image = [image retain]; This could not be like this, right ? [cell image] = [image retain]; Mario Kušnjer mario.kusn

Re: copyWithZone - if anyone could explain this to me ?

2009-11-30 Thread Mario Kušnjer
Thank you for your explanations, Clark, Jeff and Graham. I think i will go now and read a C book (yes, I know I should have read it by now) because it seems to me I have been missing something. Bye Mario Kušnjer mario.kusn...@sb.t-com.hr +385957051982

NSOutlineView - How to hide disclosure triangle for root nodes ?

2009-11-25 Thread Mario Kušnjer
) ? Notice: All objects are instances of NSMutableDictionary. That problem is also in the same project. Any suggestions are appreciated. Thanks in advance. Bye. Mario Kušnjer mario.kusn...@sb.t-com.hr +385957051982 ___ Cocoa-dev mailing list (Cocoa-dev

Re: NSOutlineView - How to hide disclosure triangle for root nodes ?

2009-11-25 Thread Mario Kušnjer
On 2009.11.25, at 17:20, Jens Alfke wrote: On Nov 25, 2009, at 5:49 AM, Mario Kušnjer wrote: How to hide the disclosure triangle in front of the Root object and remove indentation for it, and just that object (and later if there is more Root objects for them too) ? I think what you're

Re: NSOutlineView - How to hide disclosure triangle for root nodes ?

2009-11-25 Thread Mario Kušnjer
Question for Jean-Daniel and Dave Is that delegate method in Snow Leopard ? Because I don't see it in Leopard ! - (BOOL)outlineView:(NSOutlineView *)outlineView shouldShowOutlineCellForItem:(id)item; Mario Kušnjer mario.kusn...@sb.t-com.hr +385957051982

Re: NSOutlineView - How to hide disclosure triangle for root nodes ?

2009-11-25 Thread Mario Kušnjer
Disregard that last question. I have just checked online documentation on Apple Dev site. It's Snow Leopard feature, not available in Leopard. So, I should subclass NSOutlineView to solve my problem (on Leopard) ? Mario Kušnjer mario.kusn...@sb.t-com.hr +385957051982

Re: NSOutlineView - How to hide disclosure triangle for root nodes ?

2009-11-25 Thread Mario Kušnjer
than it is indented (default in IB is 14), but when I add child object to it, root object indentation gets reset to zero (0). How do I fix that ? Bye. Mario Kušnjer mario.kusn...@sb.t-com.hr +385957051982 ___ Cocoa-dev mailing list (Cocoa-dev

Re: NSOutlineView - How to hide disclosure triangle for root nodes ?

2009-11-25 Thread Mario Kušnjer
at http://www.box.net/crowebster-public. Bye. Mario Kušnjer mario.kusn...@sb.t-com.hr +385957051982 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: NSOutlineView - Automatically select newly added item - Help needed

2009-10-06 Thread Mario Kušnjer
it (and point out my mistakes) will be most welcome. Since I have no idea how to use Instruments (and until I do) this will be very helpful to me in future learning. Thanks again. Bye ! Mario Kušnjer mario.kusn...@sb.t-com.hr +385957051982 mariokusn...@skype

Re: NSOutlineView - Automatically select newly added item - Help needed

2009-10-06 Thread Mario Kušnjer
]] byExtendingSelection:NO]; --- select row according to index from indexSet created with row index of outline view for item - parent [parent release]; --- release Parent object } Again this works fine. Ok, that's it. Bye ! Mario Kušnjer mario.kusn...@sb.t-com.hr

NSOutlineView - Automatically select newly added item - Help needed

2009-10-05 Thread Mario Kušnjer
Mario Kušnjer mario.kusn...@sb.t-com.hr +385957051982 mariokusn...@skype ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins

If someone could inspect this code and explain to me what am I doing wrong ?

2009-09-18 Thread Mario Kušnjer
-- Mario Kušnjer mario.kusn...@sb.t-com.hr +385957051982 mariokusn...@skype ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins

Re: If someone could inspect this code and explain to me what am I doing wrong ?

2009-09-18 Thread Mario Kušnjer
while expanding and collapsing. Maybe because it is writing to the NSLog ? Any thoughts on this ? Anybody ? Thanks ! Mario Kušnjer mario.kusn...@sb.t-com.hr +385957051982 mariokusn...@skype ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

splitView not rendering correctly - where am I wrong ?

2009-07-16 Thread Mario Kušnjer
Hello everyone! So I have a little problem that I don't know how to fix so if somebody would be kind to help and explain the solution. Problem is that splitView displays subviews that are rendered outside from the visible area of the window so therefore are clipped (not visible). They are

Re: How to make app login window to look like OS X user login window ?

2009-04-22 Thread Mario Kušnjer
On 2009.04.22, at 08:55, Benjamin Dobson wrote: Although I'd appreciate it if you could in any way avoid the latter. I have always found them extremely annoying on OS X. If you're app takes a long time to load, something small and simple like what iWork does seems

How to: many users edit same file at the same time ?

2009-04-22 Thread Mario Kušnjer
Hello everyone ! Again me with another bizarre question So I am interested how to implement a possibility that many users can edit same file (text, XML, sheet, database entry) at the same time ? Forget the networking part for now and focus on the part of what to use for file: txt file, xml

Re: How to: many users edit same file at the same time ?

2009-04-22 Thread Mario Kušnjer
On 2009.04.23, at 03:20, Greg Guerin wrote: Seriously, though, it's not an easy problem, and if you have to ask How to without even describing What Have You Tried, then it probably means it's too hard for you to solve simply by asking someone else How to. Maybe you should consider my

Re: How to: many users edit same file at the same time ?

2009-04-22 Thread Mario Kušnjer
On 2009.04.23, at 04:02, Greg Guerin wrote: Use the internet. The two simplest things to try are: 1. Google. 2. Wikipedia. Searching Wikipedia for the keyword SubEthaEdit finds a nice article about the product itself: http://en.wikipedia.org/wiki/SubEthaEdit The first link on that

Re: How to make app login window to look like OS X user login window ?

2009-04-22 Thread Mario Kušnjer
On 2009.04.23, at 04:08, Chris Hanson wrote: You shouldn't always show a log-in panel in your application either; Mac OS X has the Keychain for secure storage of user credentials, you should only ask the user to log in to your service if there's no stored credential or they've done

Re: How to: many users edit same file at the same time ?

2009-04-22 Thread Mario Kušnjer
On 2009.04.23, at 04:23, Kyle Sluder wrote: So you're asking what API should I be using? Break it down a bit. Think about what resources SubEthaEdit uses: 1. General application type stuff (windows, etc.) 2. Text 3. Network Then search from there. I realize that everything gets

How to make app login window to look like OS X user login window ?

2009-04-21 Thread Mario Kušnjer
Greetings everyone ! So the question is how to make a window that doesn't have a title bar and borders ? Actually I would like it to be just like user login window of OS X. This could also go for a so called Splash Screen on app launch. Thanks to all in advance. Mario

Re: How to open two nibs at app launch ? Beginners question

2009-04-13 Thread Mario Kušnjer
On 2009.04.13, at 05:40, Quincey Morris wrote: It's not wrong at all. Separate nibs are the recommended way of doing this. You may just need to tell your window controller to display its window. Trying adding: [myWindowController showWindow: nil]; after you've initialized your

Re: How to open two nibs at app launch ? Beginners question

2009-04-13 Thread Mario Kušnjer
On 2009.04.13, at 11:15, Quincey Morris wrote: Not exactly. Make your application delegate (let's say its class is MyAppDelegate) separate from your window controller. So, the steps are: -- write a MyAppDelegate class (subclass of NSObject) -- in IB, drag an object into MainMenu.xib,

How to open two nibs at app launch ? Beginners question

2009-04-12 Thread Mario Kušnjer
My regards to all on the list My name is Mario and I am now to Cocoa and Objective-C so I have some questions which will sound trivial to those with more experience. Please don't refer me to documentations because I have read them and looked for an answer and I tried to do it according to