Re: encoding of file names

2011-05-23 Thread Ken Thomases
On May 23, 2011, at 11:22 PM, Chris Idou wrote: > If I take a string from an NSTextField with an accented character: café and I > make this into a file name and write a file, then I read that file name back > in > (using NSFileManager contentsOfDirectoryAtPath), then the string read back > in,

Re: Getting a handle on CoreAnimation and MVC

2011-05-23 Thread Quincey Morris
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 opinion, and a hesitant one at that ... There's nothing *i

Re: encoding of file names

2011-05-23 Thread Aki Inoue
-[NSString compare:] and its variants can handle the normalization properly. Aki Inoue On 2011/05/23, at 21:41, Howard Siegel wrote: > Look at NSString's decomposedStringWithCanonicalMapping and > decomposedStringWithCompatibilityMapping methods. They'll map > Unicode strings to normalized f

Re: encoding of file names

2011-05-23 Thread Howard Siegel
Look at NSString's decomposedStringWithCanonicalMapping and decomposedStringWithCompatibilityMapping methods. They'll map Unicode strings to normalized forms that you can then use and compare. - h On Mon, May 23, 2011 at 21:22, Chris Idou wrote: > > > If I take a string from an NSTextField wit

encoding of file names

2011-05-23 Thread Chris Idou
If I take a string from an NSTextField with an accented character: café and I make this into a file name and write a file, then I read that file name back in (using NSFileManager contentsOfDirectoryAtPath), then the string read back in, still looks the same: an accented café, but the strings d

Re: cocoa dragging and constraining coordinates

2011-05-23 Thread Kurt Sutter
On 23. May 2011, at 20:15, Kyle Sluder wrote: > On Mon, May 23, 2011 at 11:10 AM, Kyle Sluder wrote: >> If you want to drag into other applications, you really can't >> constrict the drag direction. It doesn't make sense. > > Hmm, maybe I'm not clear on what you want to do. Are trying to enable

Getting a handle on CoreAnimation and MVC

2011-05-23 Thread Graham Cox
Hi all, I haven't done anything with Core Animation so I'm belatedly trying to learn it. As a controlled environment to do this, I've written a simple game app that implements the old 'dots and squares' game. First I did this in a classic manner using a custom 'static' view to draw the board, n

Re: UITextView

2011-05-23 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/23/11 5:39 PM, koko wrote: > Is there some way to have the scrollers display as a cue to the user that > there is more text to see? Please see UIScrollView's - - (void)flashScrollIndicators - -- Conrad Shultz Synthetiq Solutions www.syntheti

UITextView

2011-05-23 Thread koko
In the Scroll View section of Text View attributes I have: Vertical Scrollers Scrolling Enabled Bounce Scroll When I set the text property and text is longer than the visible area I can scroll just fine but scrollers do not show until I begin to scroll. Is there some way to have the scrollers

Restoring an NSPrintInfo doesn't restore enough

2011-05-23 Thread Ken Victor
in my app, i save and restore (via archiving and unarchiving) the NSPrintInfo for each report my app can print. this has worked fine for me until i just got a new epson printer that can print double-sided. the saved/restored NSPrintInfo is apparently not saving/restoring sufficient information t

Re: Recursive search for files

2011-05-23 Thread Greg Guerin
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 isDeletableFileAtPath. I am thinking that all of those volumes and higher

Re: XCode4 - Setup for 2 apps 1 framework

2011-05-23 Thread Bill Cheeseman
On May 23, 2011, at 1:01 PM, Christiaan Hofman wrote: > Perhaps in your case you could have multiple workspaces, each one combining > one app with the framework(s) it uses. If Xcode 4 works properly, it should > be able to see changes made in a project linked in one workspace also in > another

Re: Spotlight help returns correct results, will not show in help viewer

2011-05-23 Thread Philip Dow
An update, might have a relevant console message here: 5/23/11 2:36:21 PM /System/Library/PrivateFrameworks/HelpData.framework/Versions/A/Resources/helpd[7362] MDS Error: unable to create user DBs in /var/folders/TQ/TQyJ+G+jGXSvJlg443gydE+++TI/-Caches-//mds ~ The problem is localized t

Re: problem bringing up print dialog for epson printer in 64-bit mode

2011-05-23 Thread Ken Victor
chris, thanx for the reply. obviously (or maybe not), i have no control over CERPCFBundle, as i don’t know for sure what it is, but i believe its from epson. and i’m not sure i want to give up using the ExceptionHandling framework, as i wish to catch other exceptions and report them as necessar

Re: problem bringing up print dialog for epson printer in 64-bit mode

2011-05-23 Thread Chris Kane
I would say that it looks like something there in CERPCFBundle is throwing an NSError as an exception, and you're also using the ExceptionHandling framework, which doesn't work with that. My recommendation would be to stop using the ExceptionHandling framework. Beyond that, if you have any con

Re: How to use PDFAnnotationStamp?

2011-05-23 Thread Laurent Daudelin
On May 23, 2011, at 11:32, Antonio Nunes wrote: > On 23 May 2011, at 19:26, Laurent Daudelin wrote: > >> I've been trying to use class "PDFAnnotationStamp" but it seems it's missing >> something. Its superclass "PDFAnnotation" has a method called >> "hasAppearanceStream" but there doesn't seem

Re: cocoa dragging and constraining coordinates

2011-05-23 Thread Kyle Sluder
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 drag session. Safari's tabs I think are an > example

Re: cocoa dragging and constraining coordinates

2011-05-23 Thread Seth Willits
On May 23, 2011, at 11:15 AM, Kyle Sluder wrote: > On Mon, May 23, 2011 at 11:10 AM, Kyle Sluder wrote: >> If you want to drag into other applications, you really can't >> constrict the drag direction. It doesn't make sense. > > Hmm, maybe I'm not clear on what you want to do. Are trying to enab

Re: How to use PDFAnnotationStamp?

2011-05-23 Thread Antonio Nunes
On 23 May 2011, at 19:26, Laurent Daudelin wrote: > I've been trying to use class "PDFAnnotationStamp" but it seems it's missing > something. Its superclass "PDFAnnotation" has a method called > "hasAppearanceStream" but there doesn't seem to be any way to set the > appearance stream, in "PDFAn

How to use PDFAnnotationStamp?

2011-05-23 Thread Laurent Daudelin
Hello. I've been trying to use class "PDFAnnotationStamp" but it seems it's missing something. Its superclass "PDFAnnotation" has a method called "hasAppearanceStream" but there doesn't seem to be any way to set the appearance stream, in "PDFAnnotation" or "PDFAnnotationStamp". What am I missi

Re: cocoa dragging and constraining coordinates

2011-05-23 Thread Kyle Sluder
On Mon, May 23, 2011 at 11:10 AM, Kyle Sluder wrote: > If you want to drag into other applications, you really can't > constrict the drag direction. It doesn't make sense. Hmm, maybe I'm not clear on what you want to do. Are trying to enable drag-to-another-app, but also drag within a canvas, and

Re: cocoa dragging and constraining coordinates

2011-05-23 Thread Kyle Sluder
On Mon, May 23, 2011 at 11:04 AM, Kurt Sutter wrote: > If I understand your proposal correctly, you propose not to use cocoa > dragging. However, please correct me if I am wrong, but I think this would > make it impossible to drag the objects to other applications, such as > Keynote. This would

Re: cocoa dragging and constraining coordinates

2011-05-23 Thread Kurt Sutter
If I understand your proposal correctly, you propose not to use cocoa dragging. However, please correct me if I am wrong, but I think this would make it impossible to drag the objects to other applications, such as Keynote. This would make our users unhappy (the objects have a pdf representation

Spotlight help returns correct results, will not show in help viewer

2011-05-23 Thread Philip Dow
I'm stumped on this one. To my knowledge I have correctly built a localized Help Book for my Mac OS application. Everything about the help book works except the spotlight search in the help menu. For example, I can open the help book, navigate it, and send users to specific pages with context s

Re: cocoa dragging and constraining coordinates

2011-05-23 Thread Kyle Sluder
On Mon, May 23, 2011 at 8:28 AM, Kurt Sutter wrote: > My view implements dragging of the objects it displays. The user should be > able to constrain the coordinates of the drag to purely horizontal/vertical > by holding down the shift key, i.e. the position of the image passed to > dragImage:at

cocoa dragging and constraining coordinates

2011-05-23 Thread Kurt Sutter
This may be a dumb question, but I cannot find a useful solution. My view implements dragging of the objects it displays. The user should be able to constrain the coordinates of the drag to purely horizontal/vertical by holding down the shift key, i.e. the position of the image passed to dragIm

NSTableView, NSCollectionView or CALayers?

2011-05-23 Thread Marcelo Alves
Hi, I have to code a table visually like the UITableView on iOS, but with one caveat : it should support some kind of animation in each cell, like the swipe in Twitter.ipa (the text disappears and a row of buttons appears underneath the cell). Looks like NSCell does not support Core Animation

Re: Recursive search for files

2011-05-23 Thread Marcelo Alves
Why not use spotlight (NSMetadataQuery / MDQuery) instead of recursion ? On 23/05/2011, at 00:00, James Merkel wrote: > I would like to add a capability to an application to search directories and > sub-directories eventually opening all image files (basically using > NSDirectoryEnumerator).

Re: Using WebKit for UI instead of Cocoa in cross-platform app

2011-05-23 Thread Sherm Pendley
On Mon, May 23, 2011 at 9:52 AM, John Joyce wrote: > > Apps that try to be somehow universal without trying to behave naturally on a > given OS usually suffer for it. Even Microsoft had to learn that lesson the hard way - google for "Word 6 fiasco." sherm-- -- Cocoa programming in Perl: http:

Re: "About" menu item is greayed out.

2011-05-23 Thread Florian Pilz
You probably removed the connection from the "About" MenuItem to File's Owner to call the method "orderFrontStandardAboutPanel:". If that is the case, the menu item will be grayed out since no action is associated with it. Recreating this connection should help. :) 2011/5/21 JAMES ROGERS > IB In

Re: Using WebKit for UI instead of Cocoa in cross-platform app

2011-05-23 Thread John Joyce
On May 23, 2011, at 4:23 AM, Matt Gough wrote: > There is some discussion that our cross-platform app should switch to using > WebKit for its UI (using embedded HTML/CSS/JavaScript), instead of the > current divergent code paths of Cocoa on Mac and native Windows stuff on PC. > Our app doesn't

Re: How to start a Dashboard widget as soon as the user logs in?

2011-05-23 Thread Behrang Saeedzadeh
Thanks for all the answers and suggestions. Lee Ann has explained the exact reason why I wanted to be able to notify my widget that the user has logged in. In other words, it is a simple widget, but when a special events, it plays a chime, so I can press F12 to see what's happened. But thanks anyw

Re: How to remove menu from WebView?

2011-05-23 Thread Mike Abdullah
Implement in your WebUIDelegate: - (NSArray *)webView:(WebView *)sender contextMenuItemsForElement:(NSDictionary*)element defaultMenuItems:(NSArray *)defaultMenuItems On 23 May 2011, at 10:37, Vyacheslav Karamov wrote: > OS X 10.4+ > > 23-May-11 12:36, Mike Abdullah пишет: >> Mac or iOS? It's

Re: How to remove menu from WebView?

2011-05-23 Thread Vyacheslav Karamov
OS X 10.4+ 23-May-11 12:36, Mike Abdullah пишет: Mac or iOS? It's hard to tell from your question. On 23 May 2011, at 10:28, Vyacheslav Karamov wrote: Hi All! How to remove pop-up menu from WebView instance? ___ Cocoa-dev mailing list (Cocoa-dev

Re: How to remove menu from WebView?

2011-05-23 Thread Mike Abdullah
Mac or iOS? It's hard to tell from your question. On 23 May 2011, at 10:28, Vyacheslav Karamov wrote: > Hi All! > > How to remove pop-up menu from WebView instance? > > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not

How to remove menu from WebView?

2011-05-23 Thread Vyacheslav Karamov
Hi All! How to remove pop-up menu from WebView instance? ___ 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/

Using WebKit for UI instead of Cocoa in cross-platform app

2011-05-23 Thread Matt Gough
There is some discussion that our cross-platform app should switch to using WebKit for its UI (using embedded HTML/CSS/JavaScript), instead of the current divergent code paths of Cocoa on Mac and native Windows stuff on PC. Our app doesn't have much UI. Just a few configuration panels and error