Re: encoding of file names

2011-05-24 Thread Quincey Morris
On May 24, 2011, at 22:12, Ken Thomases wrote: > Also, I wouldn't say that codepoints "may each consist of a variable number > of components". They may be _encoded_ to a variable number of components, > but don't "consist" of them. OK. >> This make absolutely no sense unless the word "charac

Re: encoding of file names

2011-05-24 Thread Ken Thomases
On May 24, 2011, at 11:09 PM, Quincey Morris wrote: > On May 24, 2011, at 17:33, Ken Thomases wrote: > >>> I am sure this becomes more difficult with Arabic, Hebrew and Thai and >>> other writing systems that have highly composed forms. (not sure if that's >>> the right term) >> >> Not really.

Re: Cocoa Asynchronous API Design

2011-05-24 Thread Seth Willits
On May 24, 2011, at 11:05 AM, Tito Ciuro wrote: > I thought about adding blocks, but I would like to support older iPhones if > possible. Blocks were introduced in iOS 4, correct? Yes, they're new in iOS 4, but like Pablo said, iOS 4 runs on a 3G. (And most of us 3G users got suckered into dow

Re: encoding of file names

2011-05-24 Thread Quincey Morris
On May 24, 2011, at 17:33, Ken Thomases wrote: >> I am sure this becomes more difficult with Arabic, Hebrew and Thai and other >> writing systems that have highly composed forms. (not sure if that's the >> right term) > > Not really. There *is* another level, described briefly here:

Re: Getting a handle on CoreAnimation and MVC

2011-05-24 Thread Graham Cox
On 24/05/2011, at 11:49 PM, Joanna Carter wrote: > I would definitely argue that this kind of design is not really "cleaning up" > the design but, further, polluting it :-) > > In the Cocoa world, the Controller is a very important part of getting the > non-UI code to connect to the UI element

Re: AOP

2011-05-24 Thread Dave DeLong
I've heard good things about this one: https://github.com/tomdalling/AspectObjectiveC Dave On May 24, 2011, at 3:05 PM, Guillermo Moral wrote: > Which *Aspect-Oriented Programming *framework* is *recommended to work with > Cocoa? > > I tried MGAOP but I am not sure it is the right one. > > Gu

AOP

2011-05-24 Thread Guillermo Moral
Which *Aspect-Oriented Programming *framework* is *recommended to work with Cocoa? I tried MGAOP but I am not sure it is the right one. Guillermo Moral ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderat

brushing up my skills/knowledge

2011-05-24 Thread Koen van der Drift
First post since a long time... I did some Cocoa/ObjC coding several years ago, but haven't really touched it since. I want to dive back in, and am looking for resources to brush up my knowledge, especially related to subjects like CoreData, CoreAnimation, etc. Besides the obvious docs at Apple,

Cocoa Developer (full time position) at Box (New York, USA)

2011-05-24 Thread boxworkjobs
Note: by administrator request please respond to this Ad offline. Cocoa Developer Box is looking for a talented, passionate developer that can help us innovate in the high end digital asset management sphere. A core focus will be on Flowork 3, the third iteration of Box’s state-of-the-art asse

Re: [SOLVED] -[drawInRect:withFont:] in Image Context?

2011-05-24 Thread Rick Mann
Ugh. My font was bad. Sorry for the noise. On May 24, 2011, at 17:58 , Rick Mann wrote: > I'm trying to do this: > >CGSize imgSize = CGSizeMake(25.0f, 25.0f); >UIGraphicsBeginImageContext(imgSize); > >NSString* s = [NSString stringWithFormat: @"%u", ga.stations.count]; >CGRect r

-[drawInRect:withFont:] in Image Context?

2011-05-24 Thread Rick Mann
I'm trying to do this: CGSize imgSize = CGSizeMake(25.0f, 25.0f); UIGraphicsBeginImageContext(imgSize); NSString* s = [NSString stringWithFormat: @"%u", ga.stations.count]; CGRect r = CGRectMake(0.0f, 0.0f, imgSize.width, imgSize.height); CGContextRef ctx = UIGraphics

Re: encoding of file names

2011-05-24 Thread Ken Thomases
On May 24, 2011, at 8:58 AM, John Joyce wrote: > Sorry, this is a bit of a tangent on the topic... > When you say "canonical form" here, is that the same as "decomposed" form? I meant Apple's file-system-specific canonical form, which is a variant of Normalized Form D, which is decomposed. > Al

Re: Restoring an NSPrintInfo doesn't restore enough

2011-05-24 Thread Ken Victor
scott, thanx. altho some of those specific APIs are deprecated, their “modern” equivalents seem to do the job. thanx, ken On May 24, 2011, at 5:36 AM, Scott Ribe wrote: > On May 23, 2011, at 4:23 PM, Ken Victor wrote: > >> ...can anyone tell me what additional information i need to be saving?

Re: UIKeyboard (without Text filed)

2011-05-24 Thread Jeffrey Walton
On Tue, May 24, 2011 at 6:35 PM, glenn andreas wrote: > > On May 24, 2011, at 5:28 PM, Jeffrey Walton wrote: > >> Hi All, >> >> Is it possible to display a keyboard and take input from (via a >> delegate) without using a text field? >> >> There's not much reading from Apple's doc: >> http://www.go

Re: UIKeyboard (without Text filed)

2011-05-24 Thread glenn andreas
On May 24, 2011, at 5:28 PM, Jeffrey Walton wrote: > Hi All, > > Is it possible to display a keyboard and take input from (via a > delegate) without using a text field? > > There's not much reading from Apple's doc: > http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=UIKeyboard+class+refe

UIKeyboard (without Text filed)

2011-05-24 Thread Jeffrey Walton
Hi All, Is it possible to display a keyboard and take input from (via a delegate) without using a text field? There's not much reading from Apple's doc: http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=UIKeyboard+class+reference+site%3Aapple.com Jeff __

Re: Cocoa Asynchronous API Design

2011-05-24 Thread Pablo Pons Bordes
Maybe you are right, for the developer point of view maybe it doesn't simplify the use of the API, this suggestion was from the problem of use block (that if the intention was to use bloks as delegate method parameter doesn't have to much sense the use of NSOperation). But from the implementati

Detecting Bluetooth Keyboard and getting key clicks

2011-05-24 Thread Gordon Apple
Googling this has produced nothing useful, just undocumented APIs, which is a sure way to get an iOS app rejected. Two questions: 1. How to detect the presence of a Bluetooth keyboard? I need this because I only want response when the Bluetooth keyboard is present, and not display the virtual ke

Bug with NSPredicateEditor in Xcode 4

2011-05-24 Thread Frédéric Testuz
In my project, I have a problem with editing NSPredicateEditor in a xib with Xcode 4. If I add a row template for strings, when I run my application and try to add a row to the predicate editor, I have an exception saying that it's impossible to init a predicate with a nil expression. If I edit

Re: Creating system security enhancements

2011-05-24 Thread Fritz Anderson
On 24 May 2011, at 1:03 PM, Rick Mann wrote: > Is it possible to hook into Mac OS X's security such that it's not possible > to, say, wake the machine from sleep, without some intervention? Better still > would be to require the RFID card before any login prompt would accept a > password (login

Re: How to define allowed file extensions in Info.plist?

2011-05-24 Thread Ulf Dunkel
Hi Kyle. On 24.05.2011 17:10, Kyle Sluder wrote: On Tue, May 24, 2011 at 7:05 AM, Ulf Dunkel wrote: Can someone please show me how to? Here is the relevant part of the Info.plist with the current settings for just one file extension (.csv): CFBundleDocumentTypes

Re: How to define allowed file extensions in Info.plist?

2011-05-24 Thread Ulf Dunkel
Hi Christiaan. This is a list for questions about the use of the xcode tool set, so you're at the wrong list. You may have seen that I have xposted to cocoa-dev and xcode-users because I wasn't sure if this refers to cocoa (CFBundleTypeExtensions) or Xcode, where you can set up these parame

Re: Quick Looking big files crash

2011-05-24 Thread Brad Stone
So it looks like the QuickLook framework has some bugs with Garbage Collection required. I contacted Apple tech support and they confirmed this is "likely a bug in the Quick Look framework" and asked me to file a bug report. Too bad this cost me one of my free tech support chits. In the mea

Re: Cocoa Asynchronous API Design

2011-05-24 Thread Tito Ciuro
Hi Pablo, Why would NSOperation be a better solution than say, NSURLConnection? I can call NSURLConnection several times (performing different actions) and have each delegate be invoked appropriately while maintaining some level of concurrency. It seems that adding NSOperation would add an extr

Re: Cocoa Asynchronous API Design

2011-05-24 Thread Pablo Pons Bordes
What about use NSOPeration? This way you could have a different NSOperation implementation depending of the item type, and use a solution like path1, and it will work at older iOS (the documentation said it is available since IOS 2.0). I think Bloks was introduced at iOS 4 but, anyway iOS 4 wor

Re: How to force launch of new instance of application?

2011-05-24 Thread Gary L. Wade
In that case, look at the way AppleScript (and Automator, I assume) do this. If I recall correctly, they create an application, according to the OS's definition, that launches a small interpreter that fires off the AppleScript. Depending on how much or little you want to include in each small app

Re: Cocoa Asynchronous API Design

2011-05-24 Thread Tito Ciuro
Hi Seth, I thought about adding blocks, but I would like to support older iPhones if possible. Blocks were introduced in iOS 4, correct? Thanks, -- Tito On May 24, 2011, at 10:30 AM, Seth Willits wrote: > On May 24, 2011, at 8:25 AM, Tito Ciuro wrote: > >> I have a question about Cocoa API d

Creating system security enhancements

2011-05-24 Thread Rick Mann
I just got a little RFID reader, and I was wondering what I could do with it. One thought was to create a thing that would require me to have the RFID card present to unlock the computer. Is it possible to hook into Mac OS X's security such that it's not possible to, say, wake the machine from

Re: cocoa dragging and constraining coordinates

2011-05-24 Thread Kyle Sluder
On Tue, May 24, 2011 at 10:27 AM, Seth Willits wrote: > No, it still works. Drag out of the view vs hold near the edge. Same as how a > text view works. Exiting the view changes the type of drag so you couldn't > reenter and expect internal-only behavior. (And that should be accompanied by > a

Re: Recursive search for files

2011-05-24 Thread James Merkel
On May 24, 2011, at 5:15 AM, cocoa-dev-requ...@lists.apple.com wrote: James Merkel wrote: I was trying to come up with a way to prevent the user from starting at the wrong place. (Putting up an Alert that says you can't start there). There's a method in the NSFileManager class called isDeleta

Re: Cocoa-dev Digest, Vol 8, Issue 367

2011-05-24 Thread James Merkel
On May 24, 2011, at 5:15 AM, cocoa-dev-requ...@lists.apple.com wrote: James Merkel wrote: I was trying to come up with a way to prevent the user from starting at the wrong place. (Putting up an Alert that says you can't start there). There's a method in the NSFileManager class called isDeleta

Re: Cocoa Asynchronous API Design

2011-05-24 Thread Seth Willits
On May 24, 2011, at 8:25 AM, Tito Ciuro wrote: > I have a question about Cocoa API design. I think I can give a concrete > example to best explain what the goal is. Assume I have an Inventory service > and I need to write a client API that deals with it. Goals: > > - The API should allow me to

Re: cocoa dragging and constraining coordinates

2011-05-24 Thread Seth Willits
On May 23, 2011, at 11:49 AM, Kyle Sluder wrote: > On Mon, May 23, 2011 at 11:40 AM, Seth Willits wrote: >> If this is the case (I'm not sure either), then you'd do an internal-only >> drag using normal events, and when then mouse goes outside of the bounds of >> the view, it starts a an actual

Re: How to force launch of new instance of application?

2011-05-24 Thread Gary L. Wade
Sandboxing may give you the option you really want. Look at the way Google's Chrome and WebKit 2 do their plugins. - Gary L. Wade (Sent from my iPhone) On May 24, 2011, at 9:13 AM, Jay Reynolds Freeman wrote: > I would like to set things up for my application so that every > time the user mou

Re: How to force launch of new instance of application?

2011-05-24 Thread Kyle Sluder
On Tue, May 24, 2011 at 9:13 AM, Jay Reynolds Freeman wrote: > I would like to set things up for my application so that every > time the user mouses on a document of the application to open it, > a *new* instance of the application is launched to handle just > that one document.  Thus if the user

How to force launch of new instance of application?

2011-05-24 Thread Jay Reynolds Freeman
I would like to set things up for my application so that every time the user mouses on a document of the application to open it, a *new* instance of the application is launched to handle just that one document. Thus if the user moused on many documents, many instances of the application would be r

Cocoa Asynchronous API Design

2011-05-24 Thread Tito Ciuro
Hello, I have a question about Cocoa API design. I think I can give a concrete example to best explain what the goal is. Assume I have an Inventory service and I need to write a client API that deals with it. Goals: - The API should allow me to add, update, delete and search items - These opera

Re: How to define allowed file extensions in Info.plist?

2011-05-24 Thread Kyle Sluder
On Tue, May 24, 2011 at 7:05 AM, Ulf Dunkel wrote: > Can someone please show me how to? Post your Info.plist. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Co

Re: cocoa dragging and constraining coordinates

2011-05-24 Thread Kyle Sluder
On Mon, May 23, 2011 at 8:21 PM, Kurt Sutter wrote: > How? Is there any way to constrain the coordinates of the image passed to > dragImage:at:offset:event:pasteboard:source:slideBack from the drag > destination? By not dragging an image, and drawing the dragged object directly in your view, or

How to define allowed file extensions in Info.plist?

2011-05-24 Thread Ulf Dunkel
I wonder how to define that an app should only be able to read and write these types of files: .csv .dat .txt I tried everything I could find in the documentation for CFBundleDocumentTypes but cannot manage to get it to work properly. I also tried to configure it in the app's target's Proper

Re: Getting a handle on CoreAnimation and MVC

2011-05-24 Thread Joanna Carter
Hi Graham > Of course I'm simplifying when discussing MVC - I have rarely found a case > that's "pure" in the sense of just M, V and C as well, usually there are > several layers of controller and the data model is distributed among > different objects as well. I felt the game example might be

Usage: kAuthorizationEnvironmentIcon

2011-05-24 Thread Bhatnagar, Arvin
Hi List, I've been doing a lot with Authorization Services lately. My code is working in regard to setting up an AuthorizationEnvironment and passing that into AuthorizationCopyRights(). However, specifically I am curious about the environment tag: kAuthorizationEnvironmentIcon When I use this

Re: Restoring an NSPrintInfo doesn't restore enough

2011-05-24 Thread Scott Ribe
On May 23, 2011, at 4:23 PM, Ken Victor wrote: > ...can anyone tell me what additional information i need to be saving? or > point me at some documentation that might help me. I don't know if this will catch double-side or not, but in the past I've had to use PMFlattenPageFormat and PMFlattenPr

Re: Getting a handle on CoreAnimation and MVC

2011-05-24 Thread Graham Cox
On 24/05/2011, at 3:05 PM, Quincey Morris wrote: > On May 23, 2011, at 18:27, Graham Cox wrote: > >> Am I worrying too much? Or is there a better way to think about layers that >> means I don't have to give up on strict MVC? > > I'll take a stab at this -- not pontificating, just expressing an

Re: NSStream and NSRunModalForWindow

2011-05-24 Thread Graham Cox
On 24/05/2011, at 8:03 PM, Peter C wrote: > [iStream scheduleInRunLoop:[NSRunLoop currentRunLoop] > forMode:NSDefaultRunLoopMode]; At a guess I'd say you need to set the runloop mode to something else, such as NSRunLoopCommonModes or NSModalPanelRunLoopMode. Check out the NSRunLo

NSStream and NSRunModalForWindow

2011-05-24 Thread Peter C
I have a window sending data via NSStream to another app. Whenever I invoke another modal window, the data stops. Somehow NSStream is block by NSRunModalForWindow. The code is pretty standard, a snippet of the code, [NSStream getStreamsToHost:host port:portNumber