NSMenuItem alternate view with CMD key problem

2011-07-13 Thread Adil Saleem
Hi, I am trying to create a dynamic menu so i am creating Menu Items programatically. These menu items also have Alternate menu items.  The problem is that when i assign CMD key programatically using [menuItem setKeyEquivalentModifierMask:NSCommandKeyMask];[menuItem setKeyEquivalent:@""]; it does

Re: NSMenuItem alternate view with CMD key problem

2011-07-13 Thread Adil Saleem
Just to clarify, i want to assign these keys to show Alternate menu item, not perform key equivalent action. - Adil --- On Wed, 7/13/11, Adil Saleem wrote: From: Adil Saleem Subject: NSMenuItem alternate view with CMD key problem To: cocoa-dev@lists.apple.com Date: Wednesday, July 13, 2011,

Re: NSCollectionView deselection

2011-07-13 Thread arri
i was struggling with this, when i happened to stumble across a remark from someone on the cocoadev-forums that hit the nail right on the head: " … Also, you didn't call super's -setSelected: within your override … " http://cocoadev.com/forums/discussion/comment/2190#Comment_2190 So, in your imp

Re: iOS: String Drawing

2011-07-13 Thread Filip van der Meeren
Damn, that is kind of sucky... I was trying to create something like the navigator bar in Xcode, you know those top 7~8 icons that function a bit like a tabbar... That means that I will have to manage the outer rims of the segmentControl myself. I was hoping that wasn't necessary... - Filip On

FSMountServerVolumeSync without dialog

2011-07-13 Thread Leonardo
Hi, whenever I invoke FSMountServerVolumeSync on a not available remote machine, I get an unwanted dialog saying: -- The server may not exists or it is not operational at this time. Check the server name or IP address and your network connection and try again. -- I have read on this forum that in o

Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}}

2011-07-13 Thread Philip Dow
I am trying to decode a 3rd party archive encoded in the old NSArchiver (not keyed) format. At a point in the decoding, I expect to find a CGRect, but when I call [coder decodeValueOfObjCType:@encode(CGRect) at:&myRect] an exception is raised with the error: file inconsistency: read '{?={?=ff

Cocoaheads Lake Forest meeting TONIGHT, 7pm, El Toro Library - Early Lion Celebration, Late WWDC wrapup

2011-07-13 Thread Scott Ellsworth
CocoaHeads Lake Forest will be meeting on the second Wednesday of the month. Please join us TONIGHT from 7pm to 9pm on Wednesday, 7/13. We will be meeting at the Orange County Public Library (El Toro) community room, 24672 Raymond Way, Lake Forest, CA 92630 Greetings, all, We will be discussing

Re: Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}}

2011-07-13 Thread glenn andreas
Are you decoding it from a 64 bit app? Because CGRect on 64 bits is made of doubles, while on 32 bits (where it was probably encoded) it was made of floats Also, the exact format for @encode() varies greatly between compiler version (especially with regards for things like structure names

Re: Cocoa Touch: Accessory view never calls "up outside" action?

2011-07-13 Thread Matt Neuburg
On Sun, 10 Jul 2011 00:54:08 -0700, "mlist0...@gmail.com" said: >I'm using a UIButton subclass as an accessory view in a table cell. I create >the button in my cell's initWithStyle:reuseIdentifier: method, as shown below. > >Here's the problem: I touch inside my button, but even when I drag my f

Re: Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}}

2011-07-13 Thread Philip Dow
Brilliant. Thank you Glenn. I compiled the app for 32 bit and it read the archive fine. I've created my own struct with floats for reading the archive in 64 bit and am coercing the data into doubles after the decoding. ~Phil On Jul 13, 2011, at 12:30 PM, glenn andreas wrote: > Are you decoding

iPad, UISplitView, and Refreshing Menu Items

2011-07-13 Thread Jeffrey Walton
Hi All, I've been testing refreshing my views in a split view. If the user brings the app to the foreground, I'm processing both the application's -applicationDidBecomeActive and the view controller's -viewWillAppear. -applicationDidBecomeActive sends a message (-refreshView) to all view controlle

Re: Using Multi-Gesture events with Carbon

2011-07-13 Thread Jim Correia
On Jun 29, 2011, at 2:24 PM, Abdul Sowayan wrote: > I have a carbon based application that we are converting overtime to Cocoa. > What I would like to do, if possible, is to incorporate multi-gesture events > (such as magnify event) into my carbon application. I can see that > NSResponder has m

Re: programmatically sorting an NSTableView

2011-07-13 Thread James Walker
On 7/12/2011 11:43 PM, Ken Thomases wrote: On Jul 12, 2011, at 9:24 PM, James Walker wrote: On 7/12/2011 6:14 PM, Ken Thomases wrote: On Jul 12, 2011, at 5:36 PM, James Walker wrote: On 7/12/2011 2:04 PM, Ken Thomases wrote: Invoking -setSortDescriptors: on the array controller does sort i

[Q] Using GraphicsMagic++ in a thread method?

2011-07-13 Thread JongAm Park
Hello, all. I decided to use GraphicsMagic++ in my Objective-C++/Cocoa project. When I created Magick::Image variable statically in a method which is to be called by NSInvocationOperation, it receives "EXC_BAD_ACCESS" error. However, if it is declared outside of the thread method, there is no s

Debugger() and iOS

2011-07-13 Thread mark
Is the Debugger() function supported in iOS? (This is for testing purposes only.) I get a 'Symbol not found' error from the linker. What framework do I have to include? If not, is there an equivalent? Mark TIA ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: Debugger() and iOS

2011-07-13 Thread Nick Zitzmann
On Jul 13, 2011, at 2:53 PM, mark wrote: > Is the Debugger() function supported in iOS? (This is for testing purposes > only.) No. > I get a 'Symbol not found' error from the linker. > What framework do I have to include? That function is a left-over from the old Macintosh Toolbox, and isn't

Re: CAOpenGLLayer content size

2011-07-13 Thread Takashi Mochizuki
I have noticed -setNeedsDisplay seems to breaks contentsGravity like kCAGravityResizeAspect. BackBuffer rect seems to control contentsGravity behavior. - How can I make "kCAGravity compatible" CAOpenGLLayer? To make contentsGravity property work property , I think CAOpenGLLayer should keep cont

Re: CAOpenGLLayer content size

2011-07-13 Thread David Duncan
On Jul 13, 2011, at 4:06 PM, Takashi Mochizuki wrote: > I have noticed -setNeedsDisplay seems to breaks contentsGravity like > kCAGravityResizeAspect. > BackBuffer rect seems to control contentsGravity behavior. > > - How can I make "kCAGravity compatible" CAOpenGLLayer? The CAOpenGLLayer shou

Cocoaheads?

2011-07-13 Thread William Squires
Sorry about the post - if there's an appropriate Apple list for info on Cocoaheads clubs is/are, please direct me there. I'm interested to see if there's one here in San Antonio, TX, USA. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Cocoaheads?

2011-07-13 Thread WT
On 14 Jul 2011, at 01:23, William Squires wrote: > Sorry about the post - if there's an appropriate Apple list for info on > Cocoaheads clubs is/are, please direct me there. I'm interested to see if > there's one here in San Antonio, TX, USA. Google is your friend. Search for "cocoaheads" (sans

Re: Cocoaheads?

2011-07-13 Thread Kevin Muldoon
meetup.com probably has a group listed near you. On Jul 13, 2011, at 8:38 PM, WT wrote: > On 14 Jul 2011, at 01:23, William Squires wrote: > >> Sorry about the post - if there's an appropriate Apple list for info on >> Cocoaheads clubs is/are, please direct me there. I'm interested to see if

Re: iPad, UISplitView, and Refreshing Menu Items

2011-07-13 Thread Jeffrey Walton
On Wed, Jul 13, 2011 at 3:00 PM, Jeffrey Walton wrote: > I've been testing refreshing my views in a split view. If the user > brings the app to the foreground, I'm processing both the > application's -applicationDidBecomeActive and the view controller's > -viewWillAppear. -applicationDidBecomeActi

QTMovie/QTMovieLayer and SSL client athentication...

2011-07-13 Thread Glen Haderman
We can see from the Apache logs that QTMovie does hand over a client certificate when the server asks for it during an SSL handshake. But we cannot tell which certificate it is and which CA cert that we need to use on the server side (the CA cert that generated the client cert). This is a littl

Exposing NSTableView's usesAlternatingRowBackgroundColors in the user preferences

2011-07-13 Thread Peter
I'd like to expose NSTableView's option usesAlternatingRowBackgroundColors as a settable preference in my app's preferences window. "Easy, just use a binding", I thought before I realized that NSTableView does not expose this setting via bindings, neither using IB nor programatically. I found t

Cross platform open source third party library for webservices

2011-07-13 Thread anni saini
Hi, I'm looking for cross platform open source third party library for web services which support c++. I have generated c++ files using WSMakeStubs utility but it uses Core Foundation data types. I want a library which provide web service call through c++ so that I can use it on Windows and Ma

Re: Removing (foo) from a NSString

2011-07-13 Thread Peter
Am 12.07.2011 um 21:42 schrieb Fritz Anderson: > On 12 Jul 2011, at 2:23 PM, Eric E. Dolecki wrote: > >> What would be the easiest way to strip out parens and everything between >> them from an NSString? >> >> Into The Fire (Live) >> becomes >> Into The Fire > > NSRegularExpression will do, bu

Re: programmatically sorting an NSTableView

2011-07-13 Thread Peter
See here: http://www.cocoabuilder.com/archive/cocoa/174051-programmatically-sort-nstableview.html and here http://www.cocoabuilder.com/archive/cocoa/115880-programatically-sorting-tableview.html Am 12.07.2011 um 22:43 schrieb James Walker: > I have an NSTableView containing one column, which i

What could cause an NSAlert to not dismiss on a button press?

2011-07-13 Thread Graham Westlake
I'm showing an NSAlert with runModal, but despite the buttons being responsive, the alert box will not dismiss and runModal never returns. I can't understand what state the run loop is in for this to be happening. It's actually a Qt application, and I am showing the alert at startup in response

iOS UI Design Question / Opinions wanted

2011-07-13 Thread John Tsombakos
Hi, Just getting more into iOS development, and am deciding on what to do for an app. One app is a "competition scoring" application, where the judges would use the app to calculate and score a game. The scores would are derived from a series of "challenges", each worth a set number of points. Ea

Re: iOS UI Design Question / Opinions wanted

2011-07-13 Thread Roland King
Custom button with your own graphic tick/cross is probably what I'd use for this. That's easy to do and fits pretty well with the ios look and feel. Either have two buttons and use them as radio buttons (unselect one when you hit the other) or if perhaps try one button which switches states eac

book about Cocoa testing

2011-07-13 Thread Wilker
Hi fellows, I'm trying to find good material on how to test with XCode 4 default engine, you have any recommendations? Any books or articles that does good explanation will be nice. Thanks --- Wilker Lúcio http://about.me/wilkerlucio/bio Kajabi Consultant +55 81 82556600 _