Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?

2011-08-16 Thread Jeffrey Walton
On Mon, Aug 15, 2011 at 7:34 PM, Jens Alfke j...@mooseyard.com wrote: On Aug 15, 2011, at 3:56 PM, Jeffrey Walton wrote: The DoJ could break up Apple's anti-trust lock on shardware/software. There's nothing like paying $1500 for a commodity x86 board and case with a $39 operating system and

Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?

2011-08-16 Thread Uli Kusterer
On 16.08.2011, at 00:31, Dale Miller wrote: It looks like Apple's current answer is to programatically create the custom elements. I find this interesting considering the roasting I took some time back when I wrote in about a problem I was having programatically creating a custom element. I

Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?

2011-08-16 Thread Vince
On Aug 16, 2011, at 5:46 AM, Kyle Sluder wrote: We are back to bothering engineers in order to get turnaround on some of these aspects of our applications. Is it an insurmountable burden? No. But we saw an opportunity to improve our workflow and our products by giving more power to our UX

Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?

2011-08-16 Thread Jean-Daniel Dupas
Le 16 août 2011 à 13:20, Vince a écrit : The point Charles makes about garbage collection is a very valid one. Writing dual-mode code sucks so much that Apple invented ARC. And I'm sure that the Xcode 4 team had perfectly valid reasons for omitting IB plugins from their ground-up rewrite

Re: Problems with UIAlertView

2011-08-16 Thread Matt Neuburg
On Aug 15, 2011, at 9:49 PM, Laurent Daudelin wrote: On Aug 15, 2011, at 21:39, Matt Neuburg wrote: Date: Mon, 15 Aug 2011 19:45:03 -0700 From: Laurent Daudelin laur...@nemesys-soft.com Subject: Problems with UIAlertView [loginAlertView addSubview:emailAddressTextField];

Re: Problems with UIAlertView

2011-08-16 Thread Fritz Anderson
On 15 Aug 2011, at 9:45 PM, Laurent Daudelin wrote: I'm having a problem with a UIAlertView that was working fine under iOS 4. Now, when running under iOS 4.3.2, the application crashes when the user click on the Go button and I'm not sure why, since I haven't changed anything in this code

How to pass command line parameters to Cocoa App

2011-08-16 Thread Abdul Sowayan
Hi folks, If I launch my app from the command line, I can pass it options like this (this would be the argc, argv parameters to main): ./Foo.app/Contents/MacOS/Foo -ApplePersistenceIgnoreState YES What I would like to have is launch my application from the GUI and somehow pass the command line

Re: How to pass command line parameters to Cocoa App

2011-08-16 Thread Scott Ribe
On Aug 16, 2011, at 8:54 AM, Abdul Sowayan wrote: What I would like to have is launch my application from the GUI and somehow pass the command line parameters to it. If I had to guess, this would be encoded in the Info.plist file in the bundle. It is not clear to me how to do that. Any

Re: Properly wrapping non-contiguous NSTextViews

2011-08-16 Thread Ross Carter
On Aug 15, 2011, at 6:19 PM, Nick Zitzmann wrote: Of course, if there is a better way of using the Cocoa text system to layout multiple non-contiguous pages of text with margins, I'd like to hear about it. Maybe it'll even solve the problem I'm having. Well, it should just work without any

Re: Problems with UIAlertView

2011-08-16 Thread Hunter Hillegas
My version of 4.1 is Build 4B110 so it sounds like you're maybe not on the GM of 4.1? On Aug 15, 2011, at 9:45 PM, Laurent Daudelin wrote: I'm using Xcode 4.1, build 48103. Crash occurs both on the iPad (running 4.3.2) and in the simulator (4.3) although I just discovered that if I click

[JOB] Cocoa Software Developer in Montreal, Canada

2011-08-16 Thread Sean McBride
Rogue Research is looking for a motivated individual to join our team of software developers to help make the next generation of neuronavigation equipment for the neuroscience community. We are currently looking for a Cocoa Software Developer. Responsibilities: - Assist in the design,

Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?

2011-08-16 Thread Sean McBride
On Mon, 15 Aug 2011 20:21:15 -0500, Charles Srstka said: I do hold out a tiny bit of hope that this might all be related to Xcode’s ill-fated adoption of garbage collection. The old IB plugins didn’t support GC, so they wouldn’t be compatible with Xcode 4 But this would only require a few code

RE: recomendations for creating a beta with date to expire

2011-08-16 Thread Shawn Bakhtiar
Working for a small company, alot of time beta, nay even alpha, products go straight into production. The conversation goes something like this: Developer - Hi everyone, to address our inventory issues, I created a program that User - Lets take a look User - Oh my God, this is exactly

Re: recomendations for creating a beta with date to expire

2011-08-16 Thread Scott Ribe
On Aug 16, 2011, at 10:00 AM, Shawn Bakhtiar wrote: If the app date deceases, and they can not use it again, until you decide, find yourself another job. Well, yes, it's your responsibility to get another release into their hands well before the expiration date. And it's their responsibility

Need help for data validation

2011-08-16 Thread Andre Masse
Hi, I need to validate input when the user enters data on a particular cell (caseNumber) in a table view. Not using coredata but data is stored in a Postgresql database. Here's what I need to ensure: 1- only digits 2- dont already exists in the database 3- dont already exists in the

Re: recomendations for creating a beta with date to expire

2011-08-16 Thread Wilker
I pretend to launch a beta with 2 months fixed for tests, but this beta is just to make sure it runs smoothy on other machines, and if some servers (that application depends on) will be ok with heavy access. If I got problems and need more things, for sure I will launch another beta with longer

Re: How to pass command line parameters to Cocoa App

2011-08-16 Thread Jens Alfke
On Aug 16, 2011, at 7:54 AM, Abdul Sowayan wrote: If I launch my app from the command line, I can pass it options like this (this would be the argc, argv parameters to main): ./Foo.app/Contents/MacOS/Foo -ApplePersistenceIgnoreState YES This is basically a convenience for development, so you

Exact behavior of NSLiteralSearch in string compare?

2011-08-16 Thread Jens Alfke
Anyone know what the exact behavior of NSLiteralSearch is when calling -[NSString compare:options:]? I need to sort an array of NSStrings, with the ordering based on a raw comparison of UTF-16 character values*. That is, sorting the strings as though they were just arrays of UInt16, instead of

Re: Properly wrapping non-contiguous NSTextViews

2011-08-16 Thread Nick Zitzmann
On Aug 16, 2011, at 9:09 AM, Ross Carter wrote: On Aug 15, 2011, at 6:19 PM, Nick Zitzmann wrote: Of course, if there is a better way of using the Cocoa text system to layout multiple non-contiguous pages of text with margins, I'd like to hear about it. Maybe it'll even solve the problem

Re: Problems with UIAlertView

2011-08-16 Thread Gordon Apple
I¹m doing the same thing under iOS 4.3.3 with no problems (no private APIs). Is this liable to break under new OS? On 8/16/11 11:38 AM, cocoa-dev-requ...@lists.apple.com cocoa-dev-requ...@lists.apple.com wrote: On 15 Aug 2011, at 9:45 PM, Laurent Daudelin wrote: I'm having a problem with a

How can I prevent drag-and-drop initiation in an NSTextField

2011-08-16 Thread Michael Crawford
I have a window that contains an NSTextField instance. When the textfield contains text, I can select it with a single click. I want to preserve that behavior. When I click (mouseDown) and hold, the cursor changes to an arrow and drag-and-drop (dd) is initiated. I want to disable this

Re: Problems with UIAlertView

2011-08-16 Thread Laurent Daudelin
Hmmm… I'm pretty sure I downloaded the GM when Lion came out but I'll double-check. Thanks! -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software

Re: Problems with UIAlertView

2011-08-16 Thread Laurent Daudelin
On Aug 16, 2011, at 06:20, Fritz Anderson wrote: On 15 Aug 2011, at 9:45 PM, Laurent Daudelin wrote: I'm having a problem with a UIAlertView that was working fine under iOS 4. Now, when running under iOS 4.3.2, the application crashes when the user click on the Go button and I'm not sure

Re: Problems with UIAlertView

2011-08-16 Thread Laurent Daudelin
On Aug 16, 2011, at 06:10, Matt Neuburg wrote: On Aug 15, 2011, at 9:49 PM, Laurent Daudelin wrote: On Aug 15, 2011, at 21:39, Matt Neuburg wrote: Date: Mon, 15 Aug 2011 19:45:03 -0700 From: Laurent Daudelin laur...@nemesys-soft.com Subject: Problems with UIAlertView

STAssertEquals and type-checking

2011-08-16 Thread Jens Alfke
I’ve been using the STxxx test macros lately, as they’re the path of least resistance, but I’m getting pretty frustrated with them. Worst is the way that STAssertEquals is extremely picky about types (the actual and expected parameters have to have exactly the same type), and worse, somehow

side by side xcode, open scripts

2011-08-16 Thread Lou Zell
Just giving back a little here in case anyone else is struggling with side by side Xcode3 and 4. Two quick scripts are below. Xcode3 is installed at /Xcode3, and Xcode4 at /Xcode4. xcode3 open script: #!/bin/bash open /Xcode3/Applications/Xcode.app --args `cd $1; pwd` xcode4 open script:

Re: Properly wrapping non-contiguous NSTextViews

2011-08-16 Thread Kyle Sluder
On Tue, Aug 16, 2011 at 9:59 AM, Nick Zitzmann n...@chronosnet.com wrote: But how? I can't use a single NSTextView because this is for a view where each text view corresponds to a single page of text, and so AFAICT text containers and views must be created manually as the layout manager lays

Re: side by side xcode, open scripts

2011-08-16 Thread Jens Alfke
On Aug 16, 2011, at 10:44 AM, Lou Zell wrote: xcode3 open script: #!/bin/bash open /Xcode3/Applications/Xcode.app --args `cd $1; pwd` It's easier just to do open -a /Xcode3/Applications/Xcode.app $@ which has the benefit that it works on source files as well as projects. Or you can

Re: How can I prevent drag-and-drop initiation in an NSTextField

2011-08-16 Thread Kyle Sluder
On Tue, Aug 16, 2011 at 10:15 AM, Michael Crawford michaelacrawf...@me.com wrote: I have a window that contains an NSTextField instance.  When the textfield contains text, I can select it with a single click.  I want to preserve that behavior.  When I click (mouseDown) and hold, the cursor

Is it possible to traverse dictionaries and arrays using KVC?

2011-08-16 Thread Tito Ciuro
Hello, In KVC, the setValue:forKeyPath: method is super handy to set values in deep hierarchies. I was wondering if it would be possible to access array elements using KVC. I haven't seen any reference about it in the docs, so I was wondering if it's at all possible. Example: NSDictionary

Core Data to many relationship deletion causing exception

2011-08-16 Thread Andrew Kinnie
Greetings, I have an iOS 4 + app, which is now being retrofitted to use Core Data. I have an Entity Article which has a to-many relationship to another Entity MediaResource and I generated NSManagedObject subclasses for each. The relationship is called media and is set to be optional, and to

Re: How can I prevent drag-and-drop initiation in an NSTextField

2011-08-16 Thread Michael Crawford
Thanks for responding, Kyle. I assume you meant NSTextField not NSTextView? I'm working on touch based museum exhibits, which run on Mac mini's. Suffice it to say I don't want to allow the movement of text. In the time since I asked the question, I've done some more reading on NSTextField

Re: How can I prevent drag-and-drop initiation in an NSTextField

2011-08-16 Thread Kyle Sluder
On Tue, Aug 16, 2011 at 11:26 AM, Michael Crawford michaelacrawf...@me.com wrote: I assume you meant NSTextField not NSTextView? I'm working on touch based museum exhibits, which run on Mac mini's.  Suffice it to say I don't want to allow the movement of text. Remember, all editing is done by

Re: How to pass command line parameters to Cocoa App

2011-08-16 Thread Eric Wing
On 8/16/11, Abdul Sowayan asowa...@vectorworks.net wrote: Hi folks, If I launch my app from the command line, I can pass it options like this (this would be the argc, argv parameters to main): ./Foo.app/Contents/MacOS/Foo -ApplePersistenceIgnoreState YES NSArgumentDomain under

Revert Camera Image

2011-08-16 Thread Siegfried
It's the first time I'm dealing with QTKit, and up to the current moment I've successfully created my preview for user's camera device, using QTCaptureView. However, I'd like to let users choose between reverting the image coming from their camera or not. And here's the problem. Maybe I'm

Re: How can I prevent drag-and-drop initiation in an NSTextField

2011-08-16 Thread Quincey Morris
On Aug 16, 2011, at 11:26 , Michael Crawford wrote: I'm working on touch based museum exhibits, which run on Mac mini's. Suffice it to say I don't want to allow the movement of text. On Aug 16, 2011, at 2:02 PM, Kyle Sluder wrote: On Tue, Aug 16, 2011 at 10:15 AM, Michael Crawford

Re: How can I prevent drag-and-drop initiation in an NSTextField

2011-08-16 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/16/11 11:26 AM, Michael Crawford wrote: Thanks for responding, Kyle. I assume you meant NSTextField not NSTextView? I'm working on touch based museum exhibits, which run on Mac mini's. Suffice it to say I don't want to allow the movement

Re: STAssertEquals and type-checking

2011-08-16 Thread Sean McBride
On Tue, 16 Aug 2011 10:36:57 -0700, Jens Alfke said: I’ve been using the STxxx test macros lately, as they’re the path of least resistance, but I’m getting pretty frustrated with them. Worst is the way that STAssertEquals is extremely picky about types (the actual and expected parameters have to

Re: STAssertEquals and type-checking

2011-08-16 Thread Kyle Sluder
I suppose you could write some wrapper macros that use __typeof (or whatever that compiler-specific keyword is) to automatically cast your second argument to the type of the first argument. You could even limit it to safe conversions. Look at tgmath.h for inspiration. --Kyle Sluder (Sent from

Re: How can I prevent drag-and-drop initiation in an NSTextField

2011-08-16 Thread Michael Crawford
On Aug 16, 2011, at 2:44 PM, Quincey Morris wrote: On Aug 16, 2011, at 11:26 , Michael Crawford wrote: I'm working on touch based museum exhibits, which run on Mac mini's. Suffice it to say I don't want to allow the movement of text. On Aug 16, 2011, at 2:02 PM, Kyle Sluder wrote: On

Re: Need help for data validation

2011-08-16 Thread Andre Masse
Answering my own question: Read the documentation on: - (BOOL)control:(NSControl *)control textShouldEndEditing:(NSText *)fieldEditor Cheers, Andre Masse On 16/08/2011, at 12:21 , Andre Masse wrote: Hi, I need to validate input when the user enters data on a particular cell

Re: Properly wrapping non-contiguous NSTextViews

2011-08-16 Thread Ross Carter
On Aug 16, 2011, at 12:59 PM, Nick Zitzmann wrote: On Aug 16, 2011, at 9:09 AM, Ross Carter wrote: On Aug 15, 2011, at 6:19 PM, Nick Zitzmann wrote: Of course, if there is a better way of using the Cocoa text system to layout multiple non-contiguous pages of text with margins, I'd like

Re: Properly wrapping non-contiguous NSTextViews

2011-08-16 Thread Nick Zitzmann
On Aug 16, 2011, at 12:00 PM, Kyle Sluder wrote: On Tue, Aug 16, 2011 at 9:59 AM, Nick Zitzmann n...@chronosnet.com wrote: But how? I can't use a single NSTextView because this is for a view where each text view corresponds to a single page of text, and so AFAICT text containers and views

Re: Properly wrapping non-contiguous NSTextViews

2011-08-16 Thread Nick Zitzmann
On Aug 16, 2011, at 1:20 PM, Ross Carter wrote: Right. You do have to add and remove the text containers and text views as needed. What I meant was, you shouldn't need to do anything to insure that the text is drawn correctly in the views and flows correctly between the containers. What

Re: Core Data to many relationship deletion causing exception

2011-08-16 Thread Keary Suska
On Aug 16, 2011, at 12:18 PM, Andrew Kinnie wrote: I have an iOS 4 + app, which is now being retrofitted to use Core Data. I have an Entity Article which has a to-many relationship to another Entity MediaResource and I generated NSManagedObject subclasses for each. The relationship is

Options to defaults or commandline

2011-08-16 Thread Abdul Sowayan
Hi Folks, I can do: ./Foo.app/Contents/MacOS/Foo -ApplePersistenceIgnoreState YES Or defaults write com.Bar.Foo ApplePersistenceIgnoreState YES My question is regarding options such as ApplePersistenceIgnoreState. Where did this come from? Is there some documentation that lists similar

Re: STAssertEquals and type-checking

2011-08-16 Thread Jens Alfke
On Aug 16, 2011, at 12:00 PM, Kyle Sluder wrote: I suppose you could write some wrapper macros that use __typeof (or whatever that compiler-specific keyword is) to automatically cast your second argument to the type of the first argument. You could even limit it to safe conversions.

Re: How can I prevent drag-and-drop initiation in an NSTextField

2011-08-16 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/16/11 12:15 PM, Michael Crawford wrote: If that's your goal, why don't you just setEditable:NO ? I tried that. The only problem is that then I cannot display the keys the user taps as they happen. I'm injecting keyboard events and the

Re: Is it possible to traverse dictionaries and arrays using KVC?

2011-08-16 Thread Jens Alfke
On Aug 16, 2011, at 11:03 AM, Tito Ciuro wrote: In KVC, the setValue:forKeyPath: method is super handy to set values in deep hierarchies. I was wondering if it would be possible to access array elements using KVC. I asked this a couple of weeks ago and was told the answer is “no”.

Re: Options to defaults or commandline

2011-08-16 Thread Jens Alfke
On Aug 16, 2011, at 12:46 PM, Abdul Sowayan wrote: My question is regarding options such as ApplePersistenceIgnoreState. Where did this come from? Is there some documentation that lists similar options I can use? Any code can use the NSUserDefaults API to check the existence/values of values

Re: How can I prevent drag-and-drop initiation in an NSTextField

2011-08-16 Thread Michael Crawford
On Aug 16, 2011, at 3:51 PM, Conrad Shultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/16/11 12:15 PM, Michael Crawford wrote: If that's your goal, why don't you just setEditable:NO ? I tried that. The only problem is that then I cannot display the keys the user taps as

Re: Is it possible to traverse dictionaries and arrays using KVC?

2011-08-16 Thread Tito Ciuro
Hm. I missed that thread. Thanks Jens! -- Tito On Aug 16, 2011, at 12:52 PM, Jens Alfke wrote: On Aug 16, 2011, at 11:03 AM, Tito Ciuro wrote: In KVC, the setValue:forKeyPath: method is super handy to set values in deep hierarchies. I was wondering if it would be possible to access

Re: Is it possible to traverse dictionaries and arrays using KVC?

2011-08-16 Thread Kyle Sluder
On Tue, Aug 16, 2011 at 12:52 PM, Jens Alfke j...@mooseyard.com wrote: On Aug 16, 2011, at 11:03 AM, Tito Ciuro wrote: In KVC, the setValue:forKeyPath: method is super handy to set values in deep hierarchies. I was wondering if it would be possible to access array elements using KVC. I

Re: Options to defaults or commandline

2011-08-16 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/16/11 12:46 PM, Abdul Sowayan wrote: My question is regarding options such as ApplePersistenceIgnoreState. Where did this come from? Is there some documentation that lists similar options I can use? The above was helpful for me to disable

Re: Core Data to many relationship deletion causing exception - SOLVED?

2011-08-16 Thread Andrew Kinnie
Hmm. Well the generated code was created by Xcode 4's Create NSManagedObject Subclass based on the model. The properties are created along with the methods, however due to an earlier issue, I changed @dynamic to @synthesize for the various properties in the .m for Article and MediaResource.

Re: Is it possible to traverse dictionaries and arrays using KVC?

2011-08-16 Thread Quincey Morris
On Aug 16, 2011, at 13:02 , Kyle Sluder wrote: Either way, I believe you're correct, and there's no way to get at individual indexed members of an ordered collection via -valueForKeyPath:. In the Land of Speculation … I think it's in principle possible to have such a mechanism, though of

Re: Core Data to many relationship deletion causing exception - SOLVED?

2011-08-16 Thread Quincey Morris
On Aug 16, 2011, at 13:14 , Andrew Kinnie wrote: Hmm. Well the generated code was created by Xcode 4's Create NSManagedObject Subclass based on the model. The properties are created along with the methods, however due to an earlier issue, I changed @dynamic to @synthesize for the

Re: Revert Camera Image

2011-08-16 Thread Nick Zitzmann
On Aug 16, 2011, at 12:44 PM, Siegfried wrote: It's the first time I'm dealing with QTKit, and up to the current moment I've successfully created my preview for user's camera device, using QTCaptureView. However, I'd like to let users choose between reverting the image coming from their

Re: Is it possible to traverse dictionaries and arrays using KVC?

2011-08-16 Thread Thorsten Hohage
Hi, On Tue, 16 Aug 2011 11:03:30 -0700, Tito Ciuro tci...@mac.com wrote: In KVC, the setValue:forKeyPath: method is super handy to set values in deep hierarchies. I was wondering if it would be possible to access array elements using KVC. I haven't seen any reference about it in the docs,

Re: STAssertEquals and type-checking

2011-08-16 Thread Eeyore
I was doing the same type of casting for a little bit, but then I started to set up variables for the testing. Now I prefer to keep constants out of the STXXX macros and tend to write the tests like: NSUInteger theExpectedLength = 32; STAssertEquals(myArray.length, theExpectedLength, nil);

Re: Is it possible to traverse dictionaries and arrays using KVC?

2011-08-16 Thread Thorsten Hohage
Hi, On Tue, 16 Aug 2011 11:03:30 -0700, Tito Ciuro tci...@mac.com wrote: In KVC, the setValue:forKeyPath: method is super handy to set values in deep hierarchies. I was wondering if it would be possible to access array elements using KVC. I haven't seen any reference about it in the docs,

Re: Revert Camera Image

2011-08-16 Thread Siegfried
On 16/08/2011, at 17:37, Nick Zitzmann wrote: On Aug 16, 2011, at 12:44 PM, Siegfried wrote: If not, how can I revert (mirror) the image coming from the camera? You have to implement that delegate method, and in the method, you can use a CoreImage filter to transform the image return the

Re: Is it possible to traverse dictionaries and arrays using KVC?

2011-08-16 Thread Andy Lee
On Aug 16, 2011, at 6:16 PM, Thorsten Hohage wrote: NSArray *keyArray = [key componentsSeparatedByString:@#]; NSString *arrayKey = [keyArray objectAtIndex:0]; NSString *pathKey = [keyArray objectAtIndex:1];

Re: clipping and scrolling

2011-08-16 Thread Torsten Curdt
There's no reason (though someone will probably chime in with a perverse case) not to use a UIScrollView. It gives you scrolling and zooming for very little trouble, has almost no side effects on the content you're displaying, and works the way the user expects it. Well, quoting the docs

Re: clipping and scrolling

2011-08-16 Thread David Duncan
On Aug 12, 2011, at 4:27 AM, Torsten Curdt wrote: 1) I could just create an UIImageView and just move the origin into the negative. The clipping happens naturally through the parent view. This is basically re-inventing the wheel, except that users won't fully understand what your

Re: Problems with UIAlertView

2011-08-16 Thread Laurent Daudelin
On Aug 16, 2011, at 06:10, Matt Neuburg wrote: On Aug 15, 2011, at 9:49 PM, Laurent Daudelin wrote: On Aug 15, 2011, at 21:39, Matt Neuburg wrote: Date: Mon, 15 Aug 2011 19:45:03 -0700 From: Laurent Daudelin laur...@nemesys-soft.com Subject: Problems with UIAlertView

Re: Is it possible to traverse dictionaries and arrays using KVC?

2011-08-16 Thread Andy Lee
This is one of those things that make my brain itch. I had to puzzle over this... On Aug 16, 2011, at 4:18 PM, Quincey Morris wrote: Noting that a key path like someObject.someArrayProperty.count is valid, I think you could envisage key paths of the form someObject.someArrayProperty.@0 and

Re: Problems with UIAlertView

2011-08-16 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/16/11 4:09 PM, Laurent Daudelin wrote: I'm looking at popovers. I'm wondering if there is any way that I'm overlooking to make popovers modal. So far, in all the samples I looked at, if you just tap outside the popover, it will dismiss. I

Re: Is it possible to traverse dictionaries and arrays using KVC?

2011-08-16 Thread Andy Lee
Here's a .m file that I claim you can drop into your project and you'll get the feature I described in my previous email. I wouldn't be surprised at all if I'm overlooking a fundamental flaw, so please let me know if you find one. I haven't tested with bindings, just with NSLog plus

Re: Problems with UIAlertView

2011-08-16 Thread Hunter Hillegas
There's a method on UIPopoverDelegate that allows you to tell it NOT to dismiss a popover. something like (BOOL)shouldDismissPopover:(UIPopover *)popover you can use that to make a popover modal. On Aug 16, 2011, at 4:09 PM, Laurent Daudelin wrote: I'm looking at popovers. I'm wondering if

Re: clipping and scrolling

2011-08-16 Thread Torsten Curdt
1) I could just create an UIImageView and just move the origin into the negative. The clipping happens naturally through the parent view. This is basically re-inventing the wheel, except that users won't fully understand what your re-invention has to offer. I would not go so far to call

Re: How to pass command line parameters to Cocoa App

2011-08-16 Thread douglas welton
Check out NSProcessInfo. The class has a -(NSArrary *)arguments method that may be of some interest. On Aug 16, 2011, at 10:54 AM, Abdul Sowayan wrote: Hi folks, If I launch my app from the command line, I can pass it options like this (this would be the argc, argv parameters to main):

Re: clipping and scrolling

2011-08-16 Thread David Duncan
On Aug 16, 2011, at 4:44 PM, Torsten Curdt wrote: So if one does not care about zooming and all other things UIScrollView helps with... this is not a terribly wrong thing to do? It's just that there is something in UIKit that does this, too? After all -in a very simple setup, think user

Re: clipping and scrolling

2011-08-16 Thread Torsten Curdt
So if one does not care about zooming and all other things UIScrollView helps with... this is not a terribly wrong thing to do? It's just that there is something in UIKit that does this, too? After all -in a very simple setup, think user interaction disabled- changing the frame of a subview

Re: Exact behavior of NSLiteralSearch in string compare?

2011-08-16 Thread Mike Abdullah
I'm pretty sure that's what NSLiteralSearch does. In practice for me, I found the difference is that composed/decomposed character sequences are scene as being the same when using compare with no options, but that there's a difference when using NSLiteralSearch (and by extension,

Re: Problems with UIAlertView

2011-08-16 Thread Laurent Daudelin
Thanks, all, for all the good suggestions. I've discovered the UIPopoverControllerDelegate method popoverControllerDidDismissPopover: and that seems to do the trick. I overlooked the modalInPopover property, it seems. I'll have a look at it but I think I have a replacement for that UIAlertView.

+[UINib nibWithNibName:bundle:] and ~iPhone

2011-08-16 Thread Rick Mann
I'm seeing some weird difference between Device and Simulator for iPhone. Xcode 3.2.6 Simulator 4.3(8F190) iOS 4.3.38J2) I call UINib* nib = [UINib nibWithNibName: @UserLeagueCell bundle: nil]; on the simulator, this actually seems to return the nib named UserLeagueCell~iPhone.xib. On the

Re: STAssertEquals and type-checking

2011-08-16 Thread Clark S. Cox III
On Aug 16, 2011, at 10:36 AM, Jens Alfke wrote: I’ve been using the STxxx test macros lately, as they’re the path of least resistance, but I’m getting pretty frustrated with them. Worst is the way that STAssertEquals is extremely picky about types (the actual and expected parameters have