Proper UTI for accepting files dropped on my table view?

2010-08-07 Thread Rick Mann
I'm trying to understand how to call -registerForDraggedTypes: using UTIs, instead of PBoardTypes. I want my table view to accept files dragged in from the Finder. I accept multiple kinds of file. What's the right UTI to listen for? The 10.6 standard types don't seem to include anything that's o

Stuck on programmatic scrolling (scrollToBottom sample code)

2010-08-07 Thread Christopher Corbell
I have a WebKit view which is displaying HTML content from a string. Periodically content can get inserted to the end of the body of the html document, at which time I have the WebView reload. I simply want to make the application programmatically scroll to the bottom of the page when this happen

Re: Proper UTI for accepting files dropped on my table view?

2010-08-07 Thread Philippe Devallois
On 7 août 2010, at 09:50, Rick Mann wrote: > I'm trying to understand how to call -registerForDraggedTypes: using UTIs, > instead of PBoardTypes. I want my table view to accept files dragged in from > the Finder. I accept multiple kinds of file. What's the right UTI to listen > for? The 10.6 s

Re: Proper UTI for accepting files dropped on my table view?

2010-08-07 Thread Rick Mann
I think you misunderstand (or I do). I don't want to specify a file of a particular type(s). I want to specify that a *file* is what I accept (as opposed to the contents of that file). On Aug 7, 2010, at 02:29:47, Philippe Devallois wrote: > > On 7 août 2010, at 09:50, Rick Mann wrote: > >> I

Re: Proper UTI for accepting files dropped on my table view?

2010-08-07 Thread Philippe Devallois
On 7 août 2010, at 09:50, Rick Mann wrote: > I'm trying to understand how to call -registerForDraggedTypes: using UTIs, > instead of PBoardTypes. I want my table view to accept files dragged in from > the Finder. I accept multiple kinds of file. What's the right UTI to listen > for? The 10.6 s

Re: Proper UTI for accepting files dropped on my table view?

2010-08-07 Thread Philippe Devallois
On 7 août 2010, at 11:34, Rick Mann wrote: > I think you misunderstand (or I do). I don't want to specify a file of a > particular type(s). I want to specify that a *file* is what I accept (as > opposed to the contents of that file). > > On Aug 7, 2010, at 02:29:47, Philippe Devallois wrote: >

Re: Core Data : Multiuser ?

2010-08-07 Thread Hunter Hillegas
Given those limitations, how does one enable support for a 10.6+ target? On Aug 6, 2010, at 11:38 PM, Ben Trumbull wrote: > It possible, but inefficient, for a very limited number of clients to share > over AFP. NFS doesn't work correctly at all. This is restricted by file > caching issues un

Re: Core Data : Multiprocess (was Multiuser) ?

2010-08-07 Thread Jerry Krinock
Sorry. I see I've created confusion by putting "Multiuser" in the subject. I should have said "Multiprocess"… On 2010 Aug 06, at 23:43, Ben Trumbull wrote: > p.s. > Thank you, Ben. In the

Re: Core Data : Multiuser ?

2010-08-07 Thread Brad Gibbs
I've been developing an app meant to run strictly on a local network. I'd like to have the capacity to run 50 clients and a single server (although most installations will have fewer than 20 clients). My plan has been to have each client maintain its own Core Data database and sync with the Co

Re: Core Data : Multiuser ?

2010-08-07 Thread Hunter Hillegas
Which session are we talking about? I'd like to go watch that video and I don't recall seeing it. As for the second bit, I'm not so sure... If they had wanted to port EOF they would have just ported EOF. Of course, I could be wrong but I'm not holding my breath for robust, multi-user Core Data.

NSGlyphGenerator behavior

2010-08-07 Thread vincent habchi
Hi there, There is little documentation available on the working of NSGlyphGenerator (or concrete subclasses thereof). If there is any guru lurking around, I'd like to know if it is expected that, upon sending a string for glyph generation through -(void)generateGlyphsForGlyphStorage: desiredNum

How to implement lazy loading with a proxied array

2010-08-07 Thread Dave DeLong
Hi everyone, Disclaimer: I have never touched NSProxy before; I've just read some documentation. Let's say that I have an object that encapsulates a Google search. I feed this object my query string, set some options, and then execute it. Ideally, I'd like to get back an NSArray of all the r

Re: How to implement lazy loading with a proxied array

2010-08-07 Thread Kyle Sluder
On Aug 7, 2010, at 9:42 AM, Dave DeLong wrote: > Let's say that I have an object that encapsulates a Google search. I feed > this object my query string, set some options, and then execute it. Ideally, > I'd like to get back an NSArray of all the results, but 1) that isn't > practical and 2)

IB Bug? maybe?

2010-08-07 Thread Brian Postow
There doesn't seem to be a separate Interface Builder list, so hopefully someone here can help: I have a cocoa program that I have I am writing on a 10.6 system, but targeting to 10.5. On the 10.6 system, it works fine. However, when I run it on the 10.5 machine, I get: The sender of menu it

Re: IB Bug? maybe?

2010-08-07 Thread Kyle Sluder
On Aug 7, 2010, at 10:19 AM, Brian Postow wrote: > There doesn't seem to be a separate Interface Builder list, so hopefully > someone here can help: Tools questions typically belong on xcode-users, but this looks like it might be a framework bug. > > I have a cocoa program that I have I am

Re: IB Bug? maybe?

2010-08-07 Thread Brian Postow
On Aug 7, 2010, at 1:31 PM, Kyle Sluder wrote: > On Aug 7, 2010, at 10:19 AM, Brian Postow wrote: > >> There doesn't seem to be a separate Interface Builder list, so hopefully >> someone here can help: > > Tools questions typically belong on xcode-users, but this looks like it might > be a f

-[NSMoveHelper _doAnimation] hangs

2010-08-07 Thread Marco Cassinerio
Hi, i've fallen in a weird bug... In my app i display a sheet window and it hangs in random occasions, just after sending - beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo: (it never returns from here). Here's the trace: #0 0x95af0266 in mach_msg_trap #1 0x95af

Re: Scroller With CATiledLayer Running out of Memory

2010-08-07 Thread David Duncan
On Aug 6, 2010, at 6:07 PM, Gordon Apple wrote: > I thought that was what the scroller was supposed to do for you, at least if > you actually optimized drawing to use the "rect" in drawRect, which is what > I am currently trying to do. That's how it works on AppKit in non-layer backed mode. In U

Re: Proper UTI for accepting files dropped on my table view?

2010-08-07 Thread Rick Mann
On Aug 7, 2010, at 02:44:45, Philippe Devallois wrote: > > On 7 août 2010, at 11:34, Rick Mann wrote: > >> I think you misunderstand (or I do). I don't want to specify a file of a >> particular type(s). I want to specify that a *file* is what I accept (as >> opposed to the contents of that fi

Re: Scroller With CATiledLayer Running out of Memory

2010-08-07 Thread Gordon Apple
So, are you saying that the backing layer will always be the size of the view? Or that there there will always be enough tiles to cover the view? If that is the case, then it sounds like what you are advocating is to create my own scroller or somehow tie the scroller to another (overlaid) view wi

rest framework

2010-08-07 Thread Erik Colson
Hi, I've been looking for a REST framework, which should be usable on iOS and MacOSX. There are several libraries available, but I don't know which one to choose. Which one would you recommend ? Thanks -- Erik Colson___ Cocoa-dev mailing list (Cocoa

Hiding Document Files from iTunes

2010-08-07 Thread Gordon Apple
I want iTunes inport/export file sharing. However, I have a number of internal document files and folders which I do not want shared or visible in iTunes, because they can be accessed and (accidentally) deleted by the user. I've tried hiding the files and folders, to no avail -- they still show up

Re: Core Data : Multiuser ?

2010-08-07 Thread Ben Trumbull
When you add the persistent store to the coordinator, in the store options dictionary, use the option NSSQLitePragmasOption (which is a sub dictionary of pragma keys & values) to pass the @"lock_proxy_file" key with a value of NSNull. - Ben On Aug 7, 2010, at 7:17 AM, Hunter Hillegas wrote:

Re: Hiding Document Files from iTunes

2010-08-07 Thread vincent habchi
Le 7 août 2010 à 21:26, Gordon Apple a écrit : > I want iTunes inport/export file sharing. However, I have a number of > internal document files and folders which I do not want shared or visible in > iTunes, because they can be accessed and (accidentally) deleted by the user. > I've tried hiding

NSTextView redraw while resigning first responder

2010-08-07 Thread vincent habchi
Hi there again, sorry for being a bit too verbose tonight (it's 10:18 pm here). Just something strange, or something I misunderstood. I have an NSTextField that serves as a semi-assisted SQL editor: it colors keywords and operators, and also changes their glyphs on-the-fly to make them look uppe

Re: Core Data : Multiuser ?

2010-08-07 Thread Ben Trumbull
On Aug 7, 2010, at 8:43 AM, Brad Gibbs wrote: > I've been developing an app meant to run strictly on a local network. I'd > like to have the capacity to run 50 clients and a single server (although > most installations will have fewer than 20 clients). My plan has been to > have each client

Re: NSTextView redraw while resigning first responder

2010-08-07 Thread Kyle Sluder
On Aug 7, 2010, at 1:25 PM, vincent habchi wrote: > > But, when my NSTextField resigns first responder status, it seems the > NSAttributedText is redrawn without going through the normal process (the > "standard" layout process chain): the keywords go back to lowercase and I > don't see any N

Re: Core Data : Multiuser ?

2010-08-07 Thread Brad Gibbs
It's Session 117 - Building a Server-Driven User Experience. About half-way through they move to a discussion involving Core Data. It's clear that at least some people at Apple have spent some time thinking about this. On Aug 7, 2010, at 8:53 AM, Hunter Hillegas wrote: > Which session are w

Re: NSGlyphGenerator behavior

2010-08-07 Thread Aki Inoue
No, it doesn't chunk based on word boundary. It could callback in chunks in order to prevent allocating too large buffer, though. So, you should be prepare to insert whatever requested. Aki From iPhone On 2010/08/07, at 9:14, vincent habchi wrote: > Hi there, > > There is little documen

Extra menu item in a bound NSPopUpButton menu

2010-08-07 Thread John Ackert
Hi, I have an NSPopUpButton bound to an NSArrayController which manages the content of the NSPopUpButton menu. Now I want some extra menu items at the end of the dynamic content separated by a separator menu item. What is the best way to do this? Thank you, John

CGImage / UIImage non destructive scaling possible

2010-08-07 Thread Philip Mobley
Reading up on the docs for both CGImage and UIImage, I see that there is a scale property, but there doesn't appear to be any way to modify the scale factor of an CGImage without resampling (and therefore changing the pixels). Below is a comment from the UIImage.scale (property) read-only, and i

Re: CGImage / UIImage non destructive scaling possible

2010-08-07 Thread Quincey Morris
On Aug 7, 2010, at 15:13, Philip Mobley wrote: > Reading up on the docs for both CGImage and UIImage, I see that there is a > scale property, but there doesn't appear to be any way to modify the scale > factor of an CGImage without resampling (and therefore changing the pixels). > > Below is a

Dynamic loading of a third party .dylib

2010-08-07 Thread jonat...@mugginsoft.com
My Cocoa app would very much like to link to a third party dylib. The dylib is created using an external make file and I don't really want to start modifying the build script to change the deployment INSTALL_PATH. I know that I can wield install_name_tool in a build phase but I thought about us

Disregard: Dynamic loading .. wrong list.

2010-08-07 Thread jonat...@mugginsoft.com
Sorry Wrong list. Regards Jonathan Mitchell Developer Mugginsoft LLP http://www.mugginsoft.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderator

Re: settings computer name, host name, & local host name

2010-08-07 Thread Jeremy Matthews
Stephen, Thanks - I had just dipped into the framework to get info, but the SCPrefs are definitely a little more work..funny thing about NSHot is that most the methods are deprecatedbummer. -j On Aug 6, 2010, at 10:52 PM, Stephen J. Butler wrote: > On Fri, Aug 6, 2010 at 4:22 PM, Jeremy M

Re: Core Data : Multiprocess (was Multiuser) ?

2010-08-07 Thread Ben Trumbull
> Sorry. I see I've created confusion by putting "Multiuser" in the subject. > I should have said "Multiprocess" yeah. >> Yes, several Apple frameworks use Core Data databases from multiple >> processes simultaneously with a single user account and single physical >> machine. > > Later, a r

Re: AttributedString from NSData on iPhone.

2010-08-07 Thread Douglas Davidson
My recommendation would be that anyone who has needs of this sort should file a bug giving details of the particular needs you have for your application. Douglas Davidson ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Extra menu item in a bound NSPopUpButton menu

2010-08-07 Thread Jerry Krinock
On 2010 Aug 07, at 14:39, John Ackert wrote: > I have an NSPopUpButton bound to an NSArrayController which manages the > content of the NSPopUpButton menu. Now I want some extra menu items at the > end of the dynamic content separated by a separator menu item. > What is the best way to do this

Re: How to implement lazy loading with a proxied array

2010-08-07 Thread Ken Thomases
On Aug 7, 2010, at 12:04 PM, Kyle Sluder wrote: > On Aug 7, 2010, at 9:42 AM, Dave DeLong wrote: > >> Let's say that I have an object that encapsulates a Google search. I feed >> this object my query string, set some options, and then execute it. >> Ideally, I'd like to get back an NSArray o

Re: Hiding Document Files from iTunes

2010-08-07 Thread David Duncan
On Aug 7, 2010, at 12:26 PM, Gordon Apple wrote: > I want iTunes inport/export file sharing. However, I have a number of > internal document files and folders which I do not want shared or visible in > iTunes, because they can be accessed and (accidentally) deleted by the user. > I've tried hidin

Re: Scroller With CATiledLayer Running out of Memory

2010-08-07 Thread David Duncan
On Aug 7, 2010, at 11:51 AM, Gordon Apple wrote: > So, are you saying that the backing layer will always be the size of the > view? Or that there there will always be enough tiles to cover the view? A CALayer keeps a single backing store. By default the backing store created when -display is ca

Re: Scroller With CATiledLayer Running out of Memory

2010-08-07 Thread Kyle Sluder
On Sat, Aug 7, 2010 at 8:19 PM, David Duncan wrote: > The simplest method would likely be to take the same approach that > UITableView takes. Create a subclass of UIScrollView that lays out some small > number of views that you render parts of your text into. This is very similar > to what Scro

Re: NSGlyphGenerator behavior

2010-08-07 Thread vincent habchi
Aki, > No, it doesn't chunk based on word boundary. > It could callback in chunks in order to prevent allocating too large buffer, > though. > > So, you should be prepare to insert whatever requested. In fact, you're (of course) right. What I see is that it does cut as long as I keep typing

Re: NSTextView redraw while resigning first responder

2010-08-07 Thread vincent habchi
Le 7 août 2010 à 22:35, Kyle Sluder a écrit : > Please describe your text system setup. Is it possible your custom glyph > generator is only being used for the field editor, not for the text field's > layout manager? Of course Kyle, you're a genius! I wonder what this list would be without your

Re: NSTextView redraw while resigning first responder

2010-08-07 Thread Kyle Sluder
On Sat, Aug 7, 2010 at 10:15 PM, vincent habchi wrote: > By the way, can anybody explain me why the call [window fieldEditor: > forObject:] returns a NSText *, while the documentation explicitly states it > returns a NSTextView * (so I had to cast it to get access to the > -layoutManager method

Re: NSTextView redraw while resigning first responder

2010-08-07 Thread vincent habchi
Thanks again Kyle. Vincent PS: Since NSText is a superclass of NSTextView, it would not break compatibility to change the return type to NSTextView anyhow, no? Unless some method is overriden...___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P