Unit testing Cocoa Application built with custom frameworks
Hi List, I have an application developed with few custom frameworks and plugins. Started writing Unit tests for the Frameworks first. Unfortunatly, Otect(/Developer/Tools/otest) is giving the crash with the following error: setenv _REAL_SDKROOT macosx10.5 /bin/sh -c /Users/PATH TO CODE/../../Build/FRAMEWORK NAME.build/Debug/UnitTests.build/Script-B90A51CA1313E21000FE7AC9.sh /Developer/Tools/RunPlatformUnitTests.include:412: note: Started tests for architectures 'x86_64' /Developer/Tools/RunPlatformUnitTests.include:419: note: Running tests for architecture 'x86_64' (GC OFF) objc[77507]: GC: forcing GC OFF because OBJC_DISABLE_GC is set 2013-12-12 18:03:36.280 otest-x86_64[77507:707] The test bundle at /Users/PATH TO CODE/Unittest.octest could not be loaded because its Objective-C runtime information does not match the runtime information required by the test rig. This is likely because the test rig is being run with Objective-C garbage collection disabled, but the test bundle requires Objective-C garbage collection. To enable Objective-C garbage collection for the test rig, run it in an environment without the OBJC_DISABLE_GC environment variable. 2013-12-12 18:03:36.285 otest-x86_64[77508:203] *** NSTask: Task create for path '/Users/PATH TO CODE/Unittest.octest/Contents/MacOS/Unittest' failed: 22, Invalid argument. Terminating temporary process. /Developer/Tools/RunPlatformUnitTests.include:451: error: Test rig '/Developer/Tools/otest' exited abnormally with code 5 (it may have crashed). Command /bin/sh failed with exit code 1 Tried different combinations by changing Compiler to GCC 4.2 and GC flags. Initially I am using LLVM Compiler 1.6 and GC Unsuported in Build settings. Gone through http://chanson.livejournal.com/119303.html, but no luck. One way, it is working is with the Static library. I am preparing the equivalent static Library with the same classes available in Framework. But this leads to unnecessary overhead of generating the static library only for Unit tests purpose. I have nearly 15 frameworks in my application, which are built in layered architecture. I am not getting, how it is working with the static library and not with my framework, though both are static types only. *Regards,* *Apparao Mulpuri* ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
SecIdentity from Certificate
Hi Friends, In my Cocoa app, I am trying to construct SecIndentity from the certificate with extension .p12 as mentioned in http://developer.apple.com/mac/library/documentation/Security/Conceptual/CertKeyTrustProgGuide/iPhone_Tasks/iPhone_Tasks.html, but unfortunately kSecImportExportPassphrase, kSecImportItemIdentity and kSecImportItemTrust symbols are not defined in Security framework. Do we have any workaround for this?. Actually my app should support Leopard as well. Do we have the possibility for getting the SecIdentity from the Certificate data blob in Leopard? - Apparao ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Self sign certificate creation
Hi Folks, I am trying to generate a self sign certificate programmatically in my Cocoa app instead of using KeyChain Access application. I studied Apple provided sample codes and documentation and finally I haven't find any API for Self sign certificate creation. http://developer.apple.com/mac/library/technotes/tn2007/tn2206.htmlmentioned steps for creating the Self sign certificates using openssl', 'certtool' and 'codesign' tools using NSTask. I just wondering why Apple haven't provided such APIs for certificate creation though possible with KeyChain Access? Thanks, Apparao ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Document context
Hi, I am little confused with the method + (id)elementWithName:(NSString *)name in NSXMLNode. Is this method will create a new node with in the current document context or outside of any document context?. In the Xcode documentation, apple didn't mention about the document context. - Apparao Mulpuri. ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: KBML Generator/Parser
Sorry, mentioned incorrect url for KBML. Working url for KBML is: http://koala.ilog.fr/kbml/. Any pointers on this would greatly help. Thanks, - Apparao. On Wed, Aug 6, 2008 at 11:16 AM, Apparao Mulpuri [EMAIL PROTECTED] wrote: Hi Guys, In my Cocoa application, i am planning to use KBML (http://www.inria.fr/koala/kbml/). KBML is pure java application, so i need to port it into Cocoa. I am looking for open source KBML generators/parsers to cut my development time. Is anybody aware of such applications? Thanks In Advance, ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
KBML Generator/Parser
Hi Guys, In my Cocoa application, i am planning to use KBML (http://www.inria.fr/koala/kbml/). KBML is pure java application, so i need to port it into Cocoa. I am looking for open source KBML generators/parsers to cut my development time. Is anybody aware of such applications? Thanks In Advance, ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: disable manual resizing of NSWindow
If you are creating Window in IB, then in window inspector Uncheck the reResize checkbox. In programmatic approach, you have to set the Window's style mask. - Apparao. 2008/6/18 Angelo Chen [EMAIL PROTECTED]: Hi, Is there a way to do following: In a NSWindow, I'd like to disable manual resizing(don't allow user to drag the lower right corner to resize the window), only by clicking 'max' and 'restore' icons, possible? the reason is, I put a QuickTIme's movieview in the window and the preserving aspect ratio is on, manual resizing will not do good. Thanks, Angelo Yahoo! Mail具備一流的網上安全保護功能,請前往 http://hk.antispam.yahoo.com/ 了解更多相關資訊! ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/apparao.forums%40gmail.com This email sent to [EMAIL PROTECTED] ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
capture modifier key events
Hi, I have a NSTextField, in which i have to update with new string value when ever user presses Cmd, Control or Option keys. I have tried with keyDown and controlDidChange methods. These are working with combination of other keys includes nemuric, character and functional keys. Is there any provision, to capture only modifier keys (with out pressing on other keys) events in Cocoa. Thanks Regards, - Apparao M. ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
checking application is document based application or not
Hi List, I have applicaton name, path, pid. I want to find out, whether that application is document based application or not?. Is there any way to do this? Regards, - Apparao. ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
applications list on Multi monitor
Hi List, In my Multi monitor application, i have to list out application names with respect to each monitor. Ex: Lets say Monitor 1(Primary monitor) having iTunes, AddressBook, Calculator and TextEdit(Multi Doc) application windows and Monitor2 having TextEdit and Mail application windows. For Monitor1, i have to get iTunes, AddressBook, Calculator, TextEdit applications list and for Monitor2, it is TextEdit and Mail list. In Cocoa, is there any provision to achieve this?. - Apparao. ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Multi Dock
Hi List, I am developing a multi monitor application, in which i need to display Dock on every monitor. Monitor which has System bar is the primary monitor. I didn't find any supporting classes to implement it in Cocoa. Is it implementable in Cocoa?. Please provide some pointers on it. Thanks Regards, - Apparao. ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Moving SplitView Divider Position
Hi, Is there any provision to change the NSSplitView divider position programmatically(with out using mouse). I have two splitViews with two subviews each. While dragging on one divider in one splitView, i have to move the divider in second splitview. Both splitviews dividers are in sync, while dragging any one of splitview's divider. I have tried with NSSplitView and RBSplitView, but didn't find any support to do this. Thanks, - Apparao M. ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Assertion failure in -[NSNextStepFrame lockFocus]
Here is the Stacktrace: 2008-05-15 14:45:33.469 MyCocoaApp[554:10b] NSExceptionHandler has recorded the following exception: NSInternalInconsistencyException -- -[NSNextStepFrame(0x12e0d0) lockFocus] failed with window=0x145b30, windowNumber=340, [self isHiddenOrHasHiddenAncestor]=0 Stack trace: 0x34dbc 0x9416676c 0x95df9e04 0x9112cde4 0x9569235c 0x956914c8 0x955e5498 0x955e52f8 0x95d8b018 0x95d8c1c8 0x92d823a8 0x92d82134 0x92d8200c 0x955e33c0 0x955e2d88 0x955dca44 0x955ad448 0x251c 0x2220 0x1 2008-05-15 14:45:33.470 MyCocoaApp[554:10b] -[NSNextStepFrame(0x12e0d0) lockFocus] failed with window=0x145b30, windowNumber=340, [self isHiddenOrHasHiddenAncestor]=0 2008-05-15 14:45:33.508 MyCocoaApp[554:10b] *** Assertion failure in -[NSNextStepFrame lockFocus], /SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751 On Thu, May 15, 2008 at 10:01 AM, Jens Alfke [EMAIL PROTECTED] wrote: On 14 May '08, at 9:17 PM, Apparao Mulpuri wrote: ** Assertion failure in -[NSNextStepFrame lockFocus], /SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751 May 14 17:37:39 apparao-power-mac-g5 MyCocoaApp[123]: -[NSNextStepFrame(0x143610) lockFocus] failed with window=0x142e60, windowNumber=62, [self isHiddenOrHasHiddenAncestor] What's the backtrace? Set a breakpoint at objc_exception_throw to find out. —Jens ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Assertion failure in -[NSNextStepFrame lockFocus]
Here is the complete stacktrace: 2008-05-15 15:58:53.730 MyCocoaApp[618:10b] *** Assertion failure in -[NSNextStepFrame lockFocus], /SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751 2008-05-15 15:58:53.737 MyCocoaApp[618:10b] NSExceptionHandler has recorded the following exception: NSInternalInconsistencyException -- -[NSNextStepFrame(0x146050) lockFocus] failed with window=0x1457e0, windowNumber=230, [self isHiddenOrHasHiddenAncestor]=0 Stack trace: 0x34dbc 0x9416676c 0x95df9e04 0x9112cde4 0x9569235c 0x956914c8 0x9568610c 0x956d0650 0x95809cdc 0x9587d248 0x956bb1fc 0x47b4 0x9569f3bc 0x9573aabc 0x9573a7ec 0x9571bfac 0x92d58f6c 0x92d58104 0x92d750e4 0x92daafd4 0x92dd183c 0x92dd1728 0x92e239dc 0x92e233b0 0x957f14a4 0x958257d4 0x95acfb74 0x95acf52c 0x9569da7c 0x9569c340 0x95792338 0x9566f79c 0x955dca6c 0x955ad448 0x224c 0x1f50 0x1 NSExceptionHandlerExceptionRaiser (in ExceptionHandling) objc_exception_throw (in libobjc.A.dylib) +[NSException raise:format:] (in CoreFoundation) -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] (in Foundation) -[NSView lockFocus] (in AppKit) -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] (in AppKit) -[NSWindow _setFrameCommon:display:stashSize:] (in AppKit) -[NSMoveHelper _stopAnimation] (in AppKit) -[NSMoveHelper _doAnimation] (in AppKit) -[NSMoveHelper _resizeWindow:toFrame:display:] (in AppKit) -[NSWindow setFrame:display:animate:] (in AppKit) -[MyController changeGridType:] (in MyCocoaApp) -[NSApplication sendAction:to:from:] (in AppKit) -[NSMenu performActionForItemAtIndex:] (in AppKit) -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] (in AppKit) AppKitMenuEventHandler (in AppKit) DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) (in HIToolbox) SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) (in HIToolbox) SendEventToEventTarget (in HIToolbox) SendHICommandEvent(unsigned long, HICommand const*, unsigned long, unsigned long, unsigned char, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) (in HIToolbox) SendMenuItemSelectedEvent (in HIToolbox) FinishMenuSelection(MenuData*, MenuData*, MenuResult*, MenuResult*, unsigned long, unsigned long, unsigned long, unsigned char) (in HIToolbox) PopUpMenuSelectCore(MenuData*, Point, double, Point, unsigned short, unsigned int, Rect const*, unsigned short, unsigned long, Rect const*, Rect const*, __CFString const*, OpaqueMenuRef**, unsigned short*) (in HIToolbox) _HandlePopUpMenuSelection7 (in HIToolbox) _NSPopUpCarbonMenu3 (in AppKit) -[NSCarbonMenuImpl popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions:] (in AppKit) +[NSStatusBarButtonCell popupStatusBarMenu:inRect:ofView:withEvent:] (in AppKit) -[NSStatusBarButtonCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit) -[NSControl mouseDown:] (in AppKit) -[NSWindow sendEvent:] (in AppKit) -[NSStatusBarWindow sendEvent:] (in AppKit) -[NSApplication sendEvent:] (in AppKit) -[NSApplication run] (in AppKit) NSApplicationMain (in AppKit) _start (in MyCocoaApp) start (in MyCocoaApp) On Thu, May 15, 2008 at 2:54 PM, Apparao Mulpuri [EMAIL PROTECTED] wrote: Here is the Stacktrace: 2008-05-15 14:45:33.469 MyCocoaApp[554:10b] NSExceptionHandler has recorded the following exception: NSInternalInconsistencyException -- -[NSNextStepFrame(0x12e0d0) lockFocus] failed with window=0x145b30, windowNumber=340, [self isHiddenOrHasHiddenAncestor]=0 Stack trace: 0x34dbc 0x9416676c 0x95df9e04 0x9112cde4 0x9569235c 0x956914c8 0x955e5498 0x955e52f8 0x95d8b018 0x95d8c1c8 0x92d823a8 0x92d82134 0x92d8200c 0x955e33c0 0x955e2d88 0x955dca44 0x955ad448 0x251c 0x2220 0x1 2008-05-15 14:45:33.470 MyCocoaApp[554:10b] -[NSNextStepFrame(0x12e0d0) lockFocus] failed with window=0x145b30, windowNumber=340, [self isHiddenOrHasHiddenAncestor]=0 2008-05-15 14:45:33.508 MyCocoaApp[554:10b] *** Assertion failure in -[NSNextStepFrame lockFocus], /SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751 On Thu, May 15, 2008 at 10:01 AM, Jens Alfke [EMAIL PROTECTED] wrote: On 14 May '08, at 9:17 PM, Apparao Mulpuri wrote: ** Assertion failure in -[NSNextStepFrame lockFocus], /SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751 May 14 17:37:39 apparao-power-mac-g5 MyCocoaApp[123]: -[NSNextStepFrame(0x143610) lockFocus] failed with window=0x142e60, windowNumber=62, [self isHiddenOrHasHiddenAncestor] What's the backtrace? Set a breakpoint at objc_exception_throw to find out. —Jens ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
Re: Assertion failure in -[NSNextStepFrame lockFocus]
Thanks Jens and Kyle Sluder. Actually my application is primarily targeted for Leopard OS, which is not working due to this Exception. I am creating a new window and setting window frame, where exception occurs. Is there any other way for setting the Window frame? - Apparao. On 5/15/08, Kyle Sluder [EMAIL PROTECTED] wrote: On Thu, May 15, 2008 at 11:10 AM, Jens Alfke [EMAIL PROTECTED] wrote: Thanks. This looks like a pretty normal backtrace (up until the exception), with only minimal involvement of your code, so it does seem like an AppKit bug. You should file a bug report, definitely including the backtrace, ideally including your program. And do this regardless of whether or not you think anyone else has done so already. If your bug gets marked as a dup, so be it; it lets the engineers know that this issue is affecting multiple users. --Kyle Sluder ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Assertion failure in -[NSNextStepFrame lockFocus]
HI, I have a Cocoa based multi monitor application,which will run on Mac OS X 10.3.9 onwards. It is working as expected in 10.3.9 and Tiger os versions. But, in Leopard 10.5.2, its giving following exception: ** Assertion failure in -[NSNextStepFrame lockFocus], /SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751 May 14 17:37:39 apparao-power-mac-g5 MyCocoaApp[123]: -[NSNextStepFrame(0x143610) lockFocus] failed with window=0x142e60, windowNumber=62, [self isHiddenOrHasHiddenAncestor] For single monitor with Leopard its working fine. With secondary monitor, its throwing above exception. In Secondary monitor case, i am doing window(which is custom class of NSWindow and created in IB) copy operation(using achieving and unarchieving) and displaying it on secondary monitor. I am not getting any idea from the above exception. By google, i found that, some one is experienced the same exception with custom window creation on Leopard. Any pointers on this is really appreciated. Thanks, - Apparao. ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Assertion failure in -[NSNextStepFrame lockFocus]
Is it a known issue on Leopard. Is there any fix? I am planning to file a bug in apple bugreporter. Is any one filed it already?. - Apparao. On Wed, May 14, 2008 at 7:00 PM, Apparao Mulpuri [EMAIL PROTECTED] wrote: HI, I have a Cocoa based multi monitor application,which will run on Mac OS X 10.3.9 onwards. It is working as expected in 10.3.9 and Tiger os versions. But, in Leopard 10.5.2, its giving following exception: ** Assertion failure in -[NSNextStepFrame lockFocus], /SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751 May 14 17:37:39 apparao-power-mac-g5 MyCocoaApp[123]: -[NSNextStepFrame(0x143610) lockFocus] failed with window=0x142e60, windowNumber=62, [self isHiddenOrHasHiddenAncestor] For single monitor with Leopard its working fine. With secondary monitor, its throwing above exception. In Secondary monitor case, i am doing window(which is custom class of NSWindow and created in IB) copy operation(using achieving and unarchieving) and displaying it on secondary monitor. I am not getting any idea from the above exception. By google, i found that, some one is experienced the same exception with custom window creation on Leopard. Any pointers on this is really appreciated. Thanks, - Apparao. ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Capture mouse events globally
Is three any way to capture mouse events globally from my background app. - Apparao ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: activate my application while dragging on other application window
But, in my case its differ. Here i am setting window appearence attributes like transprent, size and move. I don't thing, there is security reasons in this If Apple provide any api to set/get windows appearence attributes. My application is primarily designed for maximum use of Monitor space. For that, End user will divide the monitor space in to set of different size grids. Based on his requirement, he will move particular application window to a grid. - Apparao. On Fri, Apr 4, 2008 at 9:54 PM, Jens Alfke [EMAIL PROTECTED] wrote: On 3 Apr '08, at 11:03 PM, Apparao Mulpuri wrote: What type of Security issues are there in Windows appearance attributes change? Jens, Could you please explain your reply clearly? A window's pixels are accessible only to the process that owns the window, and to the window-server process (which is responsible for copying them to the screen.) If other processes could write into them, which is what your feature would require, then (a) a buggy process could write garbage into other applications' windows, messing up the entire screen; (b) a malicious process could write fake content into other applications' windows. For example, hiding a system security alert by clearing it to transparent. Even reading the pixels could be a security problem if there were confidential data in the other app's window. You haven't even explained _why_ your app would need such a feature, or what it's for in the first place. What's the use of an app that draws squares on my screen and changes other apps' windows colors when they move into them? —Jens ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: activate my application while dragging on other application window
That is other application Window i.e window belonging to a different application. Is Apple is going to provide this type of support in coming newer releases?. Anybody from Apple, please help me out? Thanks Regards, - Apparao. On Thu, Apr 3, 2008 at 8:17 PM, Jens Alfke [EMAIL PROTECTED] wrote: On 3 Apr '08, at 1:57 AM, Apparao Mulpuri wrote: Now, if user drags any other application window -- i have to highlight the grid and make the dragging window to transparent. By any other application window, do you mean a window belonging to a _different_ application other than your own? There's no way to do that. As I said, applications aren't allowed to mess with each other's windows. If you're talking about windows in your _own_ app, then sure, this is easy. Look at NSWindowDidMoveNotification. —Jens ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Getting other application window reference
Thanks Brian. Accessability API provides Window properties as Elements while mouse moving on a Window. Can we do this operation while mouse drag of a Window? - Apparao. On 3/27/08, Brian Kendall [EMAIL PROTECTED] wrote: I would recommend the accessibility API, since that can be used to find all the windows on screen as well as change their position and size. (URL: http://developer.apple.com/documentation/Cocoa/Conceptual/Accessibility/cocoaAXIntro/cocoaAXintro.html) Unfortunately, that won't let you use any of the normal cocoa methods for manipulating windows, but unless something has been added to Leopard that I wasn't aware of, this might be your only option. - Brian On Thu, 27 Mar 2008 07:32:47 -0400, Apparao Mulpuri [EMAIL PROTECTED] wrote: Hi, I am developing a Cocoa based application, which will access other application's window and do some resize operations. In Cocoa, is there any way to get other applications(includes non-scriptable ) window references? Thanks, - Apparao. ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/guygizmo%40gmail.com This email sent to [EMAIL PROTECTED] ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/apparao.forums%40gmail.com This email sent to [EMAIL PROTECTED] ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Spaces Implementation
Hi List, I am interested to develop a sample application, which will work like Spaces functionality. Any pointers on how it was implemented? Thanks Regards, - Apparao. ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Getting other application window reference
Hi, I am developing a Cocoa based application, which will access other application's window and do some resize operations. In Cocoa, is there any way to get other applications(includes non-scriptable ) window references? Thanks, - Apparao. ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
GetMonitorFromWindow
Hi List, Presently i am adding DualMonitor support to my application. If user drags application window to more than 50% portion to other monitor, i have to dispaly it fully in second monitor, otherwise undo the drag operation. Is Apple provides any api like GetMonitorFromWindow() in VB? Thanks, - Apparao. ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: GetMonitorFromWindow
So you mean --- there is no APIs avialable. - Apparao On 3/7/08, Roy Lovejoy [EMAIL PROTECTED] wrote: On Mar 6, 2008, at 9:01 PM, Apparao Mulpuri wrote: Hi List, Presently i am adding DualMonitor support to my application. If user drags application window to more than 50% portion to other monitor, i have to dispaly it fully in second monitor, otherwise undo the drag operation. so... you don't want your application to behave as a normal mac application has for the last 21 years of multiple monitorness? since 1987, if the user makes window spans multiple monitors, it's the user's choice to do so. 'correcting' the user by moving the window AFTER they have positioned it is a sure way annoy the heck out of them. ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/apparao.forums%40gmail.com This email sent to [EMAIL PROTECTED] ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: GetMonitorFromWindow
Actually this is one of our client requirement, he simply follows the windows product(where this functionity is available). So i should implement it. If APIs available, Could you please provide those Thanks, - Apparao On 3/7/08, Nick Zitzmann [EMAIL PROTECTED] wrote: On Mar 6, 2008, at 10:48 PM, Apparao Mulpuri wrote: So you mean --- there is no APIs avialable. There is, but you really shouldn't be doing what you're trying to do unless you have an extremely good reason. It's perfectly OK for a user to have a window straddle two screens. Nick Zitzmann http://www.chronosnet.com/ ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: NSButton setStringValue
You can use setAlternativeTitle method - Apparao. On 2/28/08, ali alavi [EMAIL PROTECTED] wrote: I am trying to change the title of a push button after each click (eg: to swap between Play and Pause) I am using this code: if(m_isPlaying) { [myButton setStringValue:@Play]; m_isPlaying = 0; } else { [myButton setStringValue:@Pause]; m_isPlaying = 1; } None of above setStringValue works and the default title of the button remain unchanged. Any help would be appreciated? _ ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/apparao.forums%40gmail.com This email sent to [EMAIL PROTECTED] ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]