Re: Problems with NSApp runModalForWindow

2011-09-26 Thread Vijay Malhan
2011/9/25 Vojtěch Meluzín > Hi, > > I'm creating a GUI system for AU/VST plugins. The host creates the view and > the rest is based of modal windows, so I'm using NSApp runModalForWindow > for > that. But there are a few problems: > > 1) NSApp runModalForWindow does not activate the window. Right

Detecting a modal session.

2009-05-31 Thread Vijay Malhan
Is there any way to detect if an application is in modal session? I am trying to fix (work around) a problem in Cocoa + Carbon application, where Cocoa UI thread is not blocked(for some Cocoa views) when a modal dialog is invoked from Carbon app. Thanks, Vijay _

Tooltip flickers and disappear.

2010-09-23 Thread Vijay Malhan
Hi, In an application I am developing, complete App wide tooltips start to misbehave after some time (not able to reproduce the exact steps). The tooltips flicker and then disappear. This also gets randomly fixed (no specific steps). This is happening in both in Mac OS X Leopard and Snow Leopard.

Writing Cocoa framework's for iPhone

2008-05-21 Thread Vijay Malhan
Hi, I'm planning to write a framework on iPhone, just similar to any other Cocoa framework on Mac OSX. But so far I'm unable to find any reference on this in documentation. There is no XCode template for this either. I tried to use the Mac OS X Cocoa framework generated by the XCode template by cha

Re: Writing Cocoa framework's for iPhone

2008-05-21 Thread Vijay Malhan
made the same mistake. > > We are not allowed to "talk in public" about the iphone apis....yet..Is > called "DNA" > > 2008/5/21 Vijay Malhan <[EMAIL PROTECTED]>: > > > Hi, > > I'm planning to write a framework on iPhone, just similar to

Re: Writing Cocoa framework's for iPhone

2008-05-21 Thread Vijay Malhan
> We are not allowed to "talk in public" about the iphone apisyet..Is >> called "DNA" >> > > Well, no, it's called "NDA", which stands for "non-disclosure agreement". > It's that pesky legal contract you agreed to in order to gain access to the > iPhone SDK that says "DO NOT TALK ABOUT THE SDK

Re: Writing Cocoa framework's for iPhone

2008-05-21 Thread Vijay Malhan
Savant,Right, coming back to that, my actual question to the forum was that "If I can write my own framework and deploy it on an iPhone". I was not discussing about any of the API so far, so I was not violating any agreement/contract. I got my answer from the SDK Agreement itself (Section 3.2.2- po

Re: Writing Cocoa framework's for iPhone

2008-05-21 Thread Vijay Malhan
Savant,Right, coming back to that, my actual question to the forum was that "If I can write my own framework and deploy it on an iPhone". I was not discussing about any of the API so far, so I was not violating any agreement/contract. I got my answer from the SDK Agreement itself (Section 3.2.2- po

Re: Trying to understand -- please help...

2008-05-21 Thread Vijay Malhan
You are not retaining the autoreleased array in your constructor. You are over-riding the first initialization of your array(which is a leak) while you are initializing with arrayWithObjects: call. You can remove this line completely cityArray = [[NSArray alloc] init]; and do a retain on this

Re: connections and the nib lifecycle

2008-05-21 Thread Vijay Malhan
Are you on Leopard? This behavior should not be there on Tiger. I faced similar problem on Leopard with NSTableView. It seems in Leopard, nib is loaded, with lazy-loading kind of approach. The controls are not initialized until the window, on which the controls are hosted, is not referenced.

Re: connections and the nib lifecycle

2008-05-21 Thread Vijay Malhan
. You might wanna a file a bug for this on Apple. - Vijay On 21-May-08, at 10:56 PM, Torsten Curdt wrote: On May 21, 2008, at 19:21, Vijay Malhan wrote: Are you on Leopard? Yepp! This behavior should not be there on Tiger. I faced similar problem on Leopard with NSTableView. It seems in

Re: connections and the nib lifecycle

2008-05-21 Thread Vijay Malhan
Yes you are right. If we see this as an optimization enhancement, it completely make sense to have things work like this. But my point is that this behavior is not in-sync with the Leopard framework documentation (XCode 3.0) and Tiger implementation. Following is extract from the Mac OS X 1

Re: Trying to understand -- please help...

2008-05-21 Thread Vijay Malhan
On 21-May-08, at 11:37 PM, I. Savant wrote: Consider +(void)initialize ... also, *none* of them are "initializers" by implication because they're class methods. Sorry, these two sentences seem to be contradictory. Let me clarify: +initialize is used to initialize the *class*. No class meth

Re: Trying to understand -- please help...

2008-05-21 Thread Vijay Malhan
t methods are called. Or the comparison condition in above example is not valid. Thanks in advance. On Thu, May 22, 2008 at 12:30 AM, Shawn Erickson <[EMAIL PROTECTED]> wrote: > On Wed, May 21, 2008 at 11:47 AM, Vijay Malhan <[EMAIL PROTECTED]> > wrote: > > >What

Re: Gaussian blur with core image, using CPU or GPU?

2008-05-23 Thread Vijay Malhan
On 23-May-08, at 7:41 PM, Jordan Woehr wrote: First, I sent this once but I don't think it made it onto the list. I've done a quick search of the archives and couldn't find it. I apologize in advance if this end up being a double post. Hi everyone, I'm trying to write a bilateral filter u

Cocoa UI In Carbon App Issues.

2008-05-25 Thread Vijay Malhan
Hi All,I've implemented a Cocoa UI (as a plugin), in a legacy Carbon App. It is a palette implementation. There are many usability issues related to it. Few of them are like: - Keyboard events loss. - Key selection on Menu's, doesn't work. - Mouse Cursor update event loss. - Option + Close (Close A

Re: email

2008-05-28 Thread Vijay Malhan
Yes. You can use Apple Scripting to achieve this. Another trivial method to do this could be using Automator.app. By Automator you can create workflow's for importing mails/calenders/addresses etc using automator-actions provided by Mail.app and Entourage.app (They both support automator actions).

Re: Hii I have problem in

2008-05-30 Thread Vijay Malhan
On Fri, May 30, 2008 at 1:26 PM, haresh vavdiya < [EMAIL PROTECTED]> wrote: > Ya but i have retained my stringRes instance variable but i can't > understand > what is problem We can't see that in your code. Use: self.stringRes = txtResult.text; and declare a retain-property for your string ivar.

Re: sorting an NSTableView

2008-05-30 Thread Vijay Malhan
An Example: mTable = member instance for your TableView mData = member array which provides the data-objects. Put the following code at a place where your table and data-source array is initialized. Like in awakeFromNib: method. Here I'm sorting on key "name", Change it to whatever key you ha

Re: sorting an NSTableView

2008-06-01 Thread Vijay Malhan
On Sun, Jun 1, 2008 at 5:53 AM, James W. Walker <[EMAIL PROTECTED]> wrote: > > On May 30, 2008, at 5:04 AM, Vijay Malhan wrote: > > An Example: >> mTable = member instance for your TableView >> mData = member array which provides the data-objects. >> >&g

Re: NSAppleScript question

2008-06-04 Thread Vijay Malhan
Yess you can pass arguments through AppleScript. See Scripting Commands for this. http://developer.apple.com/documentation/Cocoa/Conceptual/ScriptableCocoaApplications/SApps_script_cmds/chapter_8_section_1.html You can visually see the commands/properties available for iTunes in it's Scripting di

Re: Where to start looking to fix hang?

2008-06-05 Thread Vijay Malhan
On Thu, Jun 5, 2008 at 9:47 AM, Graham Cox <[EMAIL PROTECTED]> wrote: > In my app I'm getting a hang when my main document window is asked to > close. This occurs only if there are unsaved changes, but it hangs before > the "unsaved changes" sheet is presented. > > If I link against the 10.4u SDK

Re: How to enable crash log generation in 10.5?

2008-06-05 Thread Vijay Malhan
On Thu, Jun 5, 2008 at 12:51 PM, parag vibhute <[EMAIL PROTECTED]> wrote: > Hi all, > > I have implemented Cocoa application where I am handling exceptions through > signal handling. > > I went through the Apple TechNote TN2123 ( > http://developer.apple.com/technotes/tn2004/tn2123.html). It state

Re: Linking dependancies

2008-06-05 Thread Vijay Malhan
In XCode, Drag your dylib to the "Link with libraries" group under your app target. You may also want to add your dylib target as a dependency to your app. - Vijay Sent from my iPhone On 05-Jun-08, at 4:33 PM, Damien Cooke <[EMAIL PROTECTED]> wrote: Hi, Here is a dumb question for you :)

Re: Installing Spin Control alone

2008-06-06 Thread Vijay Malhan
Not sure if this is possible without installing development tools. However you can try using "Sample" in Activity Monitor(App/Utilities) on the hanged app. (Double Click the hanged app in Activity Monitor to get console window and hit "Sample") Thanks. - Vijay On Fri, Jun 6, 2008 at 4:43 PM, par

Re: Installing Spin Control alone

2008-06-06 Thread Vijay Malhan
samples out? Anyway, you may also try exploring any 3rd party tool for this. - Vijay > I need to find out the statement no. which is causing the application > hanged. I have built the application in Debug mode. > > Thanks, > Palav > > > On Fri, Jun 6, 2008 at 4:52 PM, Vijay M

Re: [Newbie] Proper class releasing

2008-06-06 Thread Vijay Malhan
On Fri, Jun 6, 2008 at 9:41 PM, Jon Keon <[EMAIL PROTECTED]> wrote: > > Hi All, > > I'm having a problem with creating new instances of classes after other > instances of them have been released. > > I have a class called BaddieManager. > > In this class I have a NSMutableArray that holds instance

Re: [Newbie] Proper class releasing

2008-06-06 Thread Vijay Malhan
o, I'll suggest you to review your design as suggested by Kyle. You can see Cocoa MVC documentation for more details. Thanks. Link: http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaDesignPatterns/chapter_5_section_4.html - Vijay > > > > > Thanks, > >

Re: Cocoa n00b frustrations

2008-06-07 Thread Vijay Malhan
On Sun, Jun 8, 2008 at 8:59 AM, Robert Nicholson <[EMAIL PROTECTED]> wrote: > You can try the following methods > > - (BOOL)control:(NSControl *)control textShouldBeginEditing:(NSText > *)fieldEditor > { >[ MyController logCurrentInputSource ]; >return true; > } > > - (void)control

Re: crash on command-W

2008-06-10 Thread Vijay Malhan
On Tue, Jun 10, 2008 at 7:54 PM, Adam R. Maxwell <[EMAIL PROTECTED]> wrote: > On Jun 9, 2008, at 11:17 PM, James W. Walker wrote: > > On Jun 9, 2008, at 10:44 PM, Joseph Kelly wrote: >> >> Toggle the release when closed setting on the window nib? See the docs >>> for -[NSWindow setReleasedWhenCl

NSPanel: resigning key focus?

2008-09-04 Thread Vijay Malhan
How do I make NSPanel(activating utility window) to resign key focus on an event (escape key down). I have tried: - resignFirstResponder - resignKeyWindow etc. None works. I have sub-classed NSPanel to get keydown events. Thanks. - Vijay ___ Cocoa-de

Re: NSPanel: resigning key focus?

2008-09-04 Thread Vijay Malhan
> > > This won't work because it doesn't know who should become the responder > when it resigns. Instead, if you make some other object (window) key, this > one should lose that status. (i.e. it can only jump if it has somewhere *to* > jump). The next object in responder chain should become first

Re: NSPanel: resigning key focus?

2008-09-04 Thread Vijay Malhan
> >> This won't work because it doesn't know who should become the responder >> when it resigns. Instead, if you make some other object (window) key, this >> one should lose that status. (i.e. it can only jump if it has somewhere *to* >> jump). > > > The next object in responder chain should become

Re: NSPanel: resigning key focus?

2008-09-04 Thread Vijay Malhan
Peter. Yes, bracketing the calls removes the flicker. But as far as the correct solution goes: There might not be any other window which I should make key. In that case the panel should simply resign the key focus and let application handle the events. It seems this will be the solution for now. T

Re: MacOS X 10.4 and 10.5

2009-03-01 Thread Vijay Malhan
Even if you compile your application with Mac OS X 10.4 project settings. The app when run on Mac OS X 10.5 will have full access to 10.5 SDK.But reverse is obviously not true. For example: If a method of a class is only available in Mac OS X 10.5 then you can write your code such that the method

A way to disable all tooltips in an Application?

2008-10-30 Thread Vijay Malhan
Hello All, Is there a way to disable all tooltips in an Application. Regards, Vijay ___ 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(a