Re: NSDocument's Open File Panel unresponsive when opening large file from disc

2013-01-28 Thread Mike Abdullah
On 28 Jan 2013, at 16:46, Gilles Celli gilles.ce...@ecgs.lu wrote: Please don't be scared ;-) Well I'm little bit in a hurry … will look more closely tonight, but: What I've done til now is inside readFromURL:ofType:error: 1. Open the file and store it NSString currentFileContents 2.

Re: Deadlock in core data fetch?

2013-01-27 Thread Mike Abdullah
On 27 Jan 2013, at 06:49, Martin Hewitson martin.hewit...@aei.mpg.de wrote: (sent again because it was too long and got held for moderation) Dear list, Forgive my potential use of bad terminology and ignorance here. I'm about to talk about concurrency in the context of core data, and I

Re: Deadlock in core data fetch?

2013-01-27 Thread Mike Abdullah
On 27 Jan 2013, at 15:04, Martin Hewitson martin.hewit...@aei.mpg.de wrote: 1) How can I interpret the call graph shown below? I'm finding it difficult to extract from that who's blocking whom. 2) Is there something glaringly wrong with the strategy I sketched above? (I guess so, since

Re: NSPointerArray on iOS - truly __weak?

2013-01-22 Thread Mike Abdullah
On 10 Dec 2012, at 20:26, Matt Neuburg m...@tidbits.com wrote: Bump. I'd still like to hear about this. The docs have a *huge* box saying that iOS NSPointerArray is not doing __weak references, but it sure looks to me like it is. But I don't know how to test. Thanks for any help. m. On

Re: NSString and file system Re: AppleScript in Sandboxed App

2013-01-18 Thread Mike Abdullah
On 16 Jan 2013, at 17:40, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Jan 16, 2013, at 09:12 , jonat...@mugginsoft.com jonat...@mugginsoft.com wrote: To be honest I rarely remember to call -fileSystemRepresentation. The docs seem to indicate that its only purpose is to

Re: Using a document bundle file type with core data

2013-01-17 Thread Mike Abdullah
On 17 Jan 2013, at 03:38, David Brittain websi...@paperetto.com wrote: The code in this blog article enables saving core data files to a package: http://cutecoder.org/featured/asynchronous-core-data-document/ Take a look at the writeSafelyToURL implementation in the gist at the bottom. I

Re: AppleScript in Sandboxed App

2013-01-14 Thread Mike Abdullah
On 14 Jan 2013, at 17:50, John Nairn j...@geditcom.com wrote: I have sandboxed an app that allows users to run scripts as a major feeature (i.e., dealbreaker on sandboxing only answer is to delete this feature). I was pleased that I can run AppleScripts fine through the sandboxed app from

Re: Optimal height for WebView

2013-01-14 Thread Mike Abdullah
On 14 Jan 2013, at 18:09, Eric Gorr mail...@ericgorr.net wrote: Sent from my iPhone On Jan 4, 2013, at 9:45 PM, Steve Christensen puns...@mac.com wrote: On Jan 4, 2013, at 10:40 AM, Mike Abdullah wrote: On 4 Jan 2013, at 18:12, Eric Gorr mail...@ericgorr.net wrote: Good point

Re: Tracking object references

2013-01-12 Thread Mike Abdullah
On 12 Jan 2013, at 09:01, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Dear list, I'm still struggling to find the cause of a CoreData could not fulfil a fault error on saving an NSPersistentDocument (see other mail thread coredata count not fulfill fault after object delete).

Re: Issue with Core Data Model

2013-01-11 Thread Mike Abdullah
On 11 Jan 2013, at 16:35, David Delmonte ddelmo...@mac.com wrote: I think that now, entities must start with a capital letter.. Amy has an *attribute* named description; not an entity. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-09 Thread Mike Abdullah
On 8 Jan 2013, at 05:53, Martin Hewitson wrote: On Jan 7, 2013, at 08:44 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: On 7 Jan 2013, at 16:35, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Hi Francisco, Thanks for the feedback! What you suggest sounds like it might fix

Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-07 Thread Mike Abdullah
On 7 Jan 2013, at 16:35, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Hi Francisco, Thanks for the feedback! What you suggest sounds like it might fix the problem, but I'm wondering how best to do this. Currently I'm just calling -remove: on the tree controller to delete the

Re: scroll bars and visible rect

2013-01-04 Thread Mike Abdullah
On 3 Jan 2013, at 17:54, koko k...@highrolls.net wrote: visibleRect Returns the visible region of the receiver, in its own coordinate space. (read-only) @property(readonly) CGRect visibleRect Discussion The visible region is the area not clipped by the containing scroll layer.

Re: Optimal height for WebView

2013-01-04 Thread Mike Abdullah
On 4 Jan 2013, at 17:19, Eric Gorr mail...@ericgorr.net wrote: Sent from my iPhone On Jan 4, 2013, at 11:34 AM, Keary Suska cocoa-...@esoteritech.com wrote: On Jan 4, 2013, at 9:19 AM, Eric Gorr wrote: It seems like this should be a simple question. I can access the NSScrollView

Re: Optimal height for WebView

2013-01-04 Thread Mike Abdullah
On 4 Jan 2013, at 18:12, Eric Gorr mail...@ericgorr.net wrote: Good point Mike. However, after it has completed the layout, is it possible to determine the height of the content? If so, i could probably work with that information. But, I would still think it was possible to provide a

Re: scroll bars and visible rect

2013-01-03 Thread Mike Abdullah
You need to be more specific. What precisely do you mean by the visible rect? On 2 Jan 2013, at 22:53, koko wrote: Are scroll bars inside the visible rect or additive to the visible rect? I ask because we use the visible rect to set the size of a bitmap to display and we are getting some

Re: Refreshing the NSOpenPanel?

2012-12-29 Thread Mike Abdullah
Is your app sandboxed? If so, does disabling the sandbox make a difference? Sent from my iPad On 30 Dec 2012, at 00:43, C.W. Betts computer...@hotmail.com wrote: After I set an NSOpenPanel's allowed file types while it is open, it doesn't refresh until I move to a different folder. Is there

Re: NSURL bookmark error return

2012-12-18 Thread Mike Abdullah
On 18 Dec 2012, at 08:37, Quincey Morris quinceymor...@rivergatesoftware.com wrote: Was there a thread recently that listed a couple of Cocoa frameworks methods that mis-handle the NSError** parameter? What were those methods? The reason I ask is that the general file system documentation

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Mike Abdullah
On 17 Dec 2012, at 17:15, Sean McBride s...@rogue-research.com wrote: On Sun, 16 Dec 2012 21:46:14 -0800, Kyle Sluder said: Thanks Kyle. I know about beginWithCompletionHandler: , but I really need a modal window at that point my application opens the open panel. I have to ask, why?

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Mike Abdullah
On 17 Dec 2012, at 23:29, Kyle Sluder k...@ksluder.com wrote: On Mon, Dec 17, 2012, at 03:25 PM, Sean McBride wrote: On Mon, 17 Dec 2012 23:15:15 +, Mike Abdullah said: For what it's worth, OS X v10.8 Mountain Lion finally fixes this by making open panels non-modal. I think apps do

Re: NSOpenPanel runModal on a dispatch

2012-12-16 Thread Mike Abdullah
On 16 Dec 2012, at 10:45, Tamas Nagy wrote: Hey, I'm trying to display an NSOpenPanel on a dispatch, with half-luck. The panel displays, but no files going to be displayed - the circle just spinning on the bottom-left corner. Anyone have an idea what going wrong? Thanks, Tamas

Re: NSOpenPanel runModal on a dispatch

2012-12-16 Thread Mike Abdullah
On 16 Dec 2012, at 18:32, Kyle Sluder wrote: On Dec 16, 2012, at 2:45 AM, Tamas Nagy tamas.lov.n...@gmail.com wrote: dispatch_async(dispatch_get_main_queue(), ^{ NSOpenPanel *oPanel = [NSOpenPanel openPanel]; *Bzzt!* Thou shalt not do UI work on a background thread. You

Re: NSOpenPanel runModal on a dispatch

2012-12-16 Thread Mike Abdullah
On 16 Dec 2012, at 17:20, Tamas Nagy wrote: Unfortunately that doesn't help. I think the issue should be related to dispatches, because it won't happen if I just call performSelectorOnMainThread... Can you post that variant of your code then, please?

Re: NSOpenPanel runModal on a dispatch

2012-12-16 Thread Mike Abdullah
On 16 Dec 2012, at 20:04, Tamas Nagy wrote: Thanks for the approach Kyle, but dispatch_async performs asynchronously, so it should not block the main thread. I fallback to performSelectorOnMainThread: method in my app, but the dispatch way is a bit straightforward in my opinion. I'll fill

Re: Bindings validation for NSMutableArray of NSMutableDictionary

2012-12-14 Thread Mike Abdullah
I'd strongly advise the OP it's better for them to create a custom class for their model objects, rather than go down this route of globally modifying NSMutableDictionary's API. On 13 Dec 2012, at 22:18, jonat...@mugginsoft.com wrote: On 13 Dec 2012, at 11:54, jonat...@mugginsoft.com wrote:

Re: NSMutableData and Pinned Memory buffers..

2012-12-14 Thread Mike Abdullah
Arguably, you'd be better off subclassing NSData directly to add the mutation APIs that you actually need. That clears up any possible confusion about methods which might affect the length of the data. On 14 Dec 2012, at 00:13, Robert Monaghan wrote: Thanks for the suggestion, Kevin! I

Re: NSWorkspace recycleURLs:completionHandler error -5000 (afpAccessDenied)

2012-12-14 Thread Mike Abdullah
On 14 Dec 2012, at 21:26, Jon Gary wrote: I have a sandboxed app that creates a file in a folder within the app's sandbox container. When the app is done with the file, it is moved to the trash using recycleURLs:completionHandler. A few of our users are reporting the you do not have

Re: URL Request from AppDelegate?

2012-12-13 Thread Mike Abdullah
You've given us an error message but no details at all about what your code is actually doing. Show us some code and it will be much much easier to debug. On 13 Dec 2012, at 01:22, berry hunt wrote: Hi gurus, I am pretty new to cocoa development, and would like to ask for help on some

Re: blocks and id

2012-12-12 Thread Mike Abdullah
On 12 Dec 2012, at 09:57, Andreas Grosam wrote: On 12.12.2012, at 10:19, Charles Srstka wrote: On Dec 12, 2012, at 3:03 AM, Andreas Grosam agro...@onlinehome.de wrote: How can I check at runtime whether an object (id) is actually a block, and not another kind of object? I don't

Re: blocks and id

2012-12-12 Thread Mike Abdullah
On 12 Dec 2012, at 13:24, Andreas Grosam wrote: On 12.12.2012, at 13:02, Mike Abdullah wrote: On 12 Dec 2012, at 09:57, Andreas Grosam wrote: Why does your code care if some unknown object is a block? This is a strong sign of a bad design. Oh, then a lot of common Cocoa patters

Re: blocks and id

2012-12-12 Thread Mike Abdullah
On 12 Dec 2012, at 14:14, Jean Suisse wrote: On 12 déc. 2012, at 13:02, Mike Abdullah cocoa...@mikeabdullah.net wrote: Why does your code care if some unknown object is a block? This is a strong sign of a bad design. As far as I am concerned, I can think of at least two or three

Re: FileWrapper iCloud

2012-12-10 Thread Mike Abdullah
On 2 Dec 2012, at 01:00, Dave Fernandes wrote: On 2012-12-01, at 5:05 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: On 1 Dec 2012, at 20:21, Dave Fernandes wrote: NSPersistentDocument always creates a MOC of type NSMainQueueConcurrencyType, even if it is created on a background

Re: NSOperation Efficiency

2012-12-05 Thread Mike Abdullah
On 5 Dec 2012, at 04:41, Kyle Sluder k...@ksluder.com wrote: NSOperationQueue uses KVO for dependency tracking and queue width management. In 10.7, the implementation was apparently changed to thunk all KVO ops onto the main thread; I'm guessing this fixed a bug by serializing all state

Re: Cascading windows

2012-12-05 Thread Mike Abdullah
The document architecture already provides proper cascading behaviour. What are you seeing that makes you think you need to implement it yourself instead? On 5 Dec 2012, at 20:55, Peter Teeson ptee...@me.com wrote: Xcode 4.5.2, Lion 10.7.5 My app is a Document app and I implemented

Re: Operations Beachball

2012-12-04 Thread Mike Abdullah
You have a performance problem. Thus you should use Instruments to see what is going on, rather than hope we can tell you from vague snippets of code. On 4 Dec 2012, at 10:29, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: My app creates lots of MyOperations (subclass of NSOperation) and puts

Re: NSOperation Efficiency

2012-12-04 Thread Mike Abdullah
If your operations are purely CPU-bound, the whole point of GCD is to manage this for you. With the default number of concurrent operations, NSOperationQueue does exactly that. Have you tried with that setting? On 4 Dec 2012, at 18:15, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: I have an

Re: Dangling reference to an invalid object

2012-12-04 Thread Mike Abdullah
On 3 Dec 2012, at 18:13, Nick Zitzmann n...@chronosnet.com wrote: On Dec 1, 2012, at 10:33 AM, Mike Abdullah cocoa...@mikeabdullah.net wrote: I've been trying to hunt down a problem where Core Data will occasionally refuse to save with the error Dangling reference to an invalid object

Re: NSOperation Efficiency

2012-12-04 Thread Mike Abdullah
On 4 Dec 2012, at 19:01, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: On 5 Dec 2012, at 01:55, Mike Abdullah cocoa...@mikeabdullah.net wrote: If your operations are purely CPU-bound, the whole point of GCD is to manage this for you. With the default number of concurrent operations

Re: FileWrapper iCloud

2012-12-01 Thread Mike Abdullah
On 30 Nov 2012, at 23:05, Dave Fernandes dave.fernan...@utoronto.ca wrote: On 2012-11-30, at 4:46 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: On 30 Nov 2012, at 18:59, Dave Fernandes dave.fernan...@utoronto.ca wrote: On 2012-11-30, at 6:42 AM, Mike Abdullah cocoa

Dangling reference to an invalid object

2012-12-01 Thread Mike Abdullah
I've been trying to hunt down a problem where Core Data will occasionally refuse to save with the error Dangling reference to an invalid object. I wrote up the details here: http://www.mikeabdullah.net/dangling-ref-to-an-invalid-object.html Can anyone shed some light on how this might happen?

Re: FileWrapper iCloud

2012-12-01 Thread Mike Abdullah
On 1 Dec 2012, at 20:21, Dave Fernandes wrote: NSPersistentDocument always creates a MOC of type NSMainQueueConcurrencyType, even if it is created on a background thread. So as long as things don't go wrong during document opening, everything will be the same as a document opened on the

Re: FileWrapper iCloud

2012-12-01 Thread Mike Abdullah
On 1 Dec 2012, at 20:12, Dave Fernandes wrote: On 2012-12-01, at 11:42 AM, Mike Abdullah cocoa...@mikeabdullah.net wrote: One way to look at it is that NSPersistentDocument pretty much painted itself into a corner from day 1, and it's too messy for Apple to untangle that. Can you

Re: FileWrapper iCloud

2012-11-30 Thread Mike Abdullah
On 30 Nov 2012, at 01:16, Sean McBride s...@rogue-research.com wrote: On Fri, 30 Nov 2012 00:43:36 +, Mike Abdullah said: With all the different features of the document system these days, it can be pretty hard to slot them all in nicely with Core Data. People may find https

Re: FileWrapper iCloud

2012-11-30 Thread Mike Abdullah
On 30 Nov 2012, at 18:59, Dave Fernandes dave.fernan...@utoronto.ca wrote: On 2012-11-30, at 6:42 AM, Mike Abdullah cocoa...@mikeabdullah.net wrote: One way to look at it is that NSPersistentDocument pretty much painted itself into a corner from day 1, and it's too messy for Apple

Re: FileWrapper iCloud

2012-11-29 Thread Mike Abdullah
On 10 Nov 2012, at 18:28, Sean McBride wrote: On Sat, 10 Nov 2012 18:09:58 +, Luke Hiesterman said: File wrappers don't make it inherently easier or harder to deal with iCloud. File packages (which you would use file wrappers to represent) can be elegant means of wrapping up document

Re: FileWrapper iCloud

2012-11-29 Thread Mike Abdullah
On 10 Nov 2012, at 21:36, Gordon Apple wrote: I don¹t know about iCloud, but I finally got file wrappers working for my NSPersistentDocument subclass. It wasn¹t easy. I use a separate folder for stored files, sibling to my coreData storage, in the same package. I based it losely on the

Re: dispatch queues are objects now .. right?

2012-11-25 Thread Mike Abdullah
On 25 Nov 2012, at 13:38, Roland King r...@rols.org wrote: I'm pretty sure that when I was watching the WWDC 2012 sessions, dispatch queues are now objects (since iOS6 and OS 10.7/10.8?) and as such I don't have to dispatch_retain() or release them and can just use them like any other

Re: removeObserver with keyPath nil

2012-11-23 Thread Mike Abdullah
On 20 Nov 2012, at 19:50, Fritz Anderson fri...@manoverboard.org wrote: On 20 Nov 2012, at 11:16 AM, Gordon Apple g...@ed4u.com wrote: What¹s the story on removeObserver:self forKeyPath:nil, called in dealloc? Supposedly, this works. The docs don¹t say you can¹t use nil. However, I have

Re: NSFileManager - Incompatible persistent store

2012-11-21 Thread Mike Abdullah
On 21 Nov 2012, at 21:16, Tom Miller t...@pxlc.me wrote: I receive a warning in Xcode about this line of code dealing with the file manager, fileManager = [NSFileManager defaultManager]; applicationSupportFolder = [self applicationSupportFolder]; if ( ![fileManager

Re: Getting a .icns file from IconRef data

2012-11-20 Thread Mike Abdullah
On 20 Nov 2012, at 12:53, Ken Thomases k...@codeweavers.com wrote: On Nov 19, 2012, at 12:36 PM, Mike Abdullah wrote: On 17 Nov 2012, at 04:09, Ken Thomases k...@codeweavers.com wrote: You should be aware that a bug was introduced to Snow Leopard with its last major update (10.6.8

Re: Getting notified of any change to a specific NSManagedObject?

2012-11-19 Thread Mike Abdullah
On 16 Nov 2012, at 22:00, Rick Mann rm...@latencyzero.com wrote: On Nov 16, 2012, at 2:31 , Mike Abdullah cocoa...@mikeabdullah.net wrote: Why are you trying to avoid a bunch of these calls? Is it just to save yourself typing? Typing, and code maintenance. I generally have UI

Re: Getting a .icns file from IconRef data

2012-11-19 Thread Mike Abdullah
On 17 Nov 2012, at 04:09, Ken Thomases k...@codeweavers.com wrote: On Nov 16, 2012, at 9:20 PM, Kyle Sluder wrote: On Nov 16, 2012, at 6:56 PM, John Brownie john_brow...@sil.org wrote: If I use TISGetInputSourceProperty to get the kTISPropertyIconImageURL property of a keyboard layout,

Re: Core Data fetch performance

2012-11-16 Thread Mike Abdullah
On 12 Nov 2012, at 14:15, Joerg Simon j_si...@mac.com wrote: This summs it up really nicely: http://wbyoung.tumblr.com/post/27851725562/core-data-growing-pains Links to radar bug reports are within the blog post. The conclusion it is not usable does not hold under iOS6, since nested

Re: Mysterious crash report

2012-11-15 Thread Mike Abdullah
On 14 Nov 2012, at 22:10, Graham Cox graham@bigpond.com wrote: On 15/11/2012, at 8:59 AM, Nick Zitzmann n...@chronosnet.com wrote: Oh. I understand how that could happen with GC if the app tried to re-use a finalized object, but the only resurrections I've seen happen under RR or

Re: WebPolicyDelegate declared where?

2012-11-01 Thread Mike Abdullah
WebPolicyDelegate is still not a formal protocol. There is nothing for you to declare conformance to. On 1 Nov 2012, at 07:44, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: My app delegate (Mac OS X) looks like this: #import WebKit/WebKit.h @interface MyAppDelegate : NSObject

Re: Mystifying index out of bounds error

2012-11-01 Thread Mike Abdullah
Well that sounds an impossible problem, but might not be. Give us the crash report too. On 1 Nov 2012, at 12:11, Antonio Nunes devli...@sintraworks.com wrote: Hi, I have this code in my app: - (void)keyDown:(NSEvent *)theEvent { unichar oneChar; NSString

Re: Mystifying index out of bounds error

2012-11-01 Thread Mike Abdullah
On 1 Nov 2012, at 14:37, Antonio Nunes devli...@sintraworks.com wrote: On 1 Nov, 2012, at 15:24 , Mike Abdullah cocoa...@mikeabdullah.net wrote: Well that sounds an impossible problem, but might not be. Give us the crash report too. 12/10/2012 12:41:10: -[__NSCFConstantString

Re: More NSFileManager Issues

2012-10-29 Thread Mike Abdullah
On 29 Oct 2012, at 09:56, Andreas Grosam agro...@onlinehome.de wrote: I do have even more weird issues with NSFileManager: With NSFileManager I've created a file in the temporary directory. Attempting to delete it, fails: NSFileManager* fm = [[NSFileManager alloc] init];

Re: ARC question

2012-10-29 Thread Mike Abdullah
On 29 Oct 2012, at 10:06, Vincent Habchi vi...@macports.org wrote: Hi folks, before aught else, all my thoughts to those of you in the Eastern coast that are preparing themselves for a bunch of bleak days… I’ve just a silly question (I know, I don’t post very often and I apologize for

Re: createDirectoryAtPath:withIntermediateDirectories:attributes:error: Returns NO when it exists

2012-10-29 Thread Mike Abdullah
On 29 Oct 2012, at 09:22, Andreas Grosam agro...@onlinehome.de wrote: I'm attempting to create a directory with NSFileManager's method. The directory may already exist. According the documentation

Re: Sandbox, security bookmarks and trash

2012-10-29 Thread Mike Abdullah
On 27 Oct 2012, at 12:07, Simone Tellini cocoa-...@tellini.info wrote: Hello, I need to handle an export function in a document-based application. When the user creates the document, he can also choose a couple of path where to save different exported results (e.g.

Re: ARC question

2012-10-29 Thread Mike Abdullah
On 29 Oct 2012, at 12:01, Vincent Habchi vi...@macports.org wrote: Le 29 oct. 2012 à 12:53, Roland King r...@rols.org a écrit : Does CFURLCreateStringByReplacingPercentEscapes() not do this for you? I often use it going the other way from text to escaped text, not just for URLs.

Re: ARC question

2012-10-29 Thread Mike Abdullah
On 29 Oct 2012, at 11:44, Vincent Habchi vi...@macports.org wrote: Le 29 oct. 2012 à 12:34, Mike Abdullah cocoa...@mikeabdullah.net a écrit : The code is a fairly inefficient to start with, but no, it's not going to leak. Thanks. I am aware of this, but since this code is going

Re: ARC question

2012-10-29 Thread Mike Abdullah
On 29 Oct 2012, at 13:55, Vincent Habchi wrote: Le 29 oct. 2012 à 14:34, Mike Abdullah cocoa...@mikeabdullah.net a écrit : Well, you can ask CFXMLCreateStringByUnescapingEntities() to do this on OS X, although if I recall all the CFXML functions have now sadly been deprecated. The source

Re: variable problem is driving me nuts

2012-10-28 Thread Mike Abdullah
On 28 Oct 2012, at 01:18, M Pulis tooth...@fastq.com wrote: clients is not (yet) a proper NSMutableArray.. Try one of the init methods within the NSMutableArray. I'm sorry? -init is a perfectly reasonable method to call here. ___ Cocoa-dev

Re: Binding InfoPanel to currentDocument

2012-10-26 Thread Mike Abdullah
On 26 Oct 2012, at 10:55, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: On 26 Oct 2012, at 16:11, Kyle Sluder k...@ksluder.com wrote: On Oct 26, 2012, at 1:52 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: On 26 Oct 2012, at 01:11, Seth Willits sli...@araelium.com wrote:

Re: Need faster approach to load data in NSTableView from a file

2012-10-26 Thread Mike Abdullah
What have you tried? You have a performance problem. The very first thing that should ever be done if you have a performance problem is head over to Instruments and find out what is slow and why. And please don't crosspost between lists. On 26 Oct 2012, at 12:17, Abhijeet Singh

Re: Security-scoped bookmarks linked to code signing?

2012-10-25 Thread Mike Abdullah
On 25 Oct 2012, at 00:27, Graham Cox wrote: On 25/10/2012, at 10:05 AM, Mike Abdullah cocoa...@mikeabdullah.net wrote: On 24 Oct 2012, at 23:31, Graham Cox wrote: On 24/10/2012, at 8:47 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: Handling security-scoped bookmarks most

Re: Security-scoped bookmarks linked to code signing?

2012-10-25 Thread Mike Abdullah
On 25 Oct 2012, at 22:05, Alex Zavatone z...@mac.com wrote: On Oct 25, 2012, at 11:35 AM, Sean McBride wrote: On Thu, 25 Oct 2012 00:05:44 +0100, Mike Abdullah said: Is it possible http://www.mikeabdullah.net/nsurl-bookmark-error- handling.html is biting you? Interesting bug. I

Re: Object not being drawn in Cmd + N window. Why?

2012-10-25 Thread Mike Abdullah
Presumably your NSView subclass implements -drawRect: Is this being called at all for you non-drawing view? If it is being called, is there anything weird about the view or environment at the time? What triggers do you have to cause the view to be redrawn? On 25 Oct 2012, at 21:16, Peter Teeson

Re: Security-scoped bookmarks linked to code signing?

2012-10-24 Thread Mike Abdullah
On 24 Oct 2012, at 02:28, Graham Cox wrote: I'm using security-scoped bookmarks to save the location of certain folders between launches so that my sandboxed app works properly. We've had reports that resolving these bookmarks sometimes crashes deep inside the security-scoping resolution

Re: App Sandbox Container or Data Directory

2012-10-24 Thread Mike Abdullah
On 23 Oct 2012, at 23:06, Richard Somers wrote: On Oct 23, 2012, at 2:43 PM, Kyle Sluder k...@ksluder.com wrote: If by unapproved you mean my app's sandbox hasn't been extended to include this path then you are incorrect. The user can choose the destination, and the NSURL you get back from

Re: Plan for persisting preferences on iOS applications

2012-10-24 Thread Mike Abdullah
On 24 Oct 2012, at 16:24, Alex Zavatone wrote: We're currently looking at expanding one of our applications from 1 office to up to 40. It's an app that needs an internal preference to be set and remembered through updates or reinstalls. I’m confused, what stops a regular preference

Re: Need help passing a Secure Bookmark to an XPC Service

2012-10-24 Thread Mike Abdullah
On 24 Oct 2012, at 22:56, douglas welton wrote: Hi All, I am sending a NSURL, encoded as a Secure Bookmark, from the main part of my sandboxed application to an XPC Service that handles a specific subtask. The data is making it across the interface, but when I try to resolve the

Re: Security-scoped bookmarks linked to code signing?

2012-10-24 Thread Mike Abdullah
On 24 Oct 2012, at 23:31, Graham Cox wrote: On 24/10/2012, at 8:47 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: Handling security-scoped bookmarks most certainly relies upon code-signing, as without you can’t create or resolve them. Are you dealing with app or document scoped

Re: Memory issues when loading a document

2012-10-23 Thread Mike Abdullah
On 23 Oct 2012, at 11:21, Ulf Dunkel dun...@calamus.net wrote: I wonder if this issue is created by our app or if it is inherent in Mac OS X: Our app creates documents which can contain various content per document page, e.g. PDF files. Assume you have created a document with 64 pages,

Re: App Sandbox Container or Data Directory

2012-10-23 Thread Mike Abdullah
On 23 Oct 2012, at 19:13, Richard Somers wrote: I do not understand what is going on with an application's sandboxed container or Data directory. NSHomeDirectory for an OS X sandboxed app points here. ~/Library/Containers/bundle_id/Data The sandbox Data directory is pre-populated

Re: Associate icon with file ext. / quick look

2012-10-22 Thread Mike Abdullah
On 22 Oct 2012, at 16:54, Sean McBride wrote: On Wed, 17 Oct 2012 13:38:45 +0200, Jean Suisse said: My scientific cocoa app (10.6-10.8) records acquired data from devices and store them in human-readable UTF8 text files that have specific extensions (different from .txt). I have two

Re: Importance of 'keys' and other options when creating bookmarks with NSURL?

2012-10-22 Thread Mike Abdullah
On 22 Oct 2012, at 21:23, Sean McBride s...@rogue-research.com wrote: Hi all, I have recently been replacing all my Alias Manager use with NSURL bookmarks. One thing that has surprised and confused me is the 'keys' parameter to

Re: How to send fetchrequest to main context from a local context on a separate thread?

2012-10-18 Thread Mike Abdullah
On 18 Oct 2012, at 16:01, Koen van der Drift koenvanderdr...@gmail.com wrote: After some more searching I came to the following plan. 1. get the main context from another thread as follows: AppDelegate *appDelegate = [[NSApplication sharedApplication] delegate]; NSManagedObjectContext

Re: NSTextField not updated during large process

2012-10-14 Thread Mike Abdullah
On 12 Oct 2012, at 23:55, Koen van der Drift koenvanderdr...@gmail.com wrote: Man, I thought I had this all working, and after a few days of doing other stuff, it is back to my original issue. I am now updating my textfield as follows, so no matter from where it is called, it will always

Re: NSTextField not updated during large process

2012-10-14 Thread Mike Abdullah
On 14 Oct 2012, at 20:29, Koen van der Drift koenvanderdr...@gmail.com wrote: On Oct 14, 2012, at 3:04 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: How did you determine that -updateStatusWrapper: doesn't get called? (You could do away with that method entirely BTW, and just use

Re: File browser widget

2012-10-12 Thread Mike Abdullah
NSOpenPanel. On 27 Sep 2012, at 12:39, Qiang Y pugetso...@outlook.com wrote: Good morning everyone, I need a file browser control/widget for my project under osx. Does anyone know if cocoa provides one for developers to user in their own applications?

Re: dropping alias file on NSPathControl with App Sandbox

2012-10-10 Thread Mike Abdullah
On 10 Oct 2012, at 00:16, Sean McBride s...@rogue-research.com wrote: On Sat, 6 Oct 2012 10:59:46 +0100, Mike Abdullah said: Sandboxed apps can resolve aliases and follow symlinks, but unless the destination is within their sandbox already they do not gain access to it, sadly. I recommend

Re: dropping alias file on NSPathControl with App Sandbox

2012-10-10 Thread Mike Abdullah
On 10 Oct 2012, at 15:04, Sean McBride s...@rogue-research.com wrote: On Wed, 10 Oct 2012 09:46:15 +0100, Mike Abdullah said: Sandboxed apps can resolve aliases and follow symlinks, but unless the destination is within their sandbox already they do not gain access to it, sadly. I recommend

Re: dropping alias file on NSPathControl with App Sandbox

2012-10-10 Thread Mike Abdullah
On 10 Oct 2012, at 17:57, Uli Kusterer witness.of.teacht...@gmx.net wrote: On Oct 10, 2012, at 6:39 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: * NSPathControl is more aware of the sandbox, and doesn't try to fetch icons it doesn't have access to Not if NSPathControl runs out

Re: dropping alias file on NSPathControl with App Sandbox

2012-10-06 Thread Mike Abdullah
Hi Sean, Sandboxed apps can resolve aliases and follow symlinks, but unless the destination is within their sandbox already they do not gain access to it, sadly. I recommend filing a radar requesting this. On 5 Oct 2012, at 20:40, Sean McBride s...@rogue-research.com wrote: Hi all,

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-04 Thread Mike Abdullah
On 3 Oct 2012, at 16:15, Marshall Houskeeper mhouskee...@media100.com wrote: Our document file format currently stores file paths and file alias to external files. We can potentially have several thousand references to external files stored in a document. When we move to a sandbox

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-04 Thread Mike Abdullah
On 3 Oct 2012, at 18:18, Sean McBride s...@rogue-research.com wrote: On Wed, 3 Oct 2012 11:15:48 -0400, Marshall Houskeeper said: Our document file format currently stores file paths and file alias to external files. We can potentially have several thousand references to external files

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-04 Thread Mike Abdullah
On 3 Oct 2012, at 19:48, Sean McBride s...@rogue-research.com wrote: On Wed, 3 Oct 2012 11:38:10 -0700, Quincey Morris said: If an item is in your sandbox, you don't need the bookmark at all (for security reasons, anyway). If the item is *not* in your sandbox, then you're going to have to

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-04 Thread Mike Abdullah
On 3 Oct 2012, at 21:34, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Oct 3, 2012, at 12:44 , Marshall Houskeeper mhouskee...@media100.com wrote: Our plan is to use Security-Scoped Bookmarks for all new documents to store external file references when we go to the

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-04 Thread Mike Abdullah
On 3 Oct 2012, at 22:02, Marshall Houskeeper mhouskee...@media100.com wrote: Hi Quincey, I have no problem with the use of the open panel ( security-scoped bookmark )for creating new documents. The problem is for pre sandboxed documents or documents that come from Windows. Having the

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-04 Thread Mike Abdullah
On 4 Oct 2012, at 20:18, Marshall Houskeeper mhouskee...@media100.com wrote: Hi Mike, Our products are a video/audio editor application and video effect plugins. In both cases, our file formats (data block for plugin data) can store many file references. Our files keep references to

Re: NSOperationQueue and for-loop

2012-10-03 Thread Mike Abdullah
On 3 Oct 2012, at 13:37, Koen van der Drift koenvanderdr...@gmail.com wrote: On Tue, Oct 2, 2012 at 10:30 PM, Koen van der Drift koenvanderdr...@gmail.com wrote: Thanks, I'll Google for some examples. For now, I still get an EXC_BAD_ACCESS (code=13, address = 0x0) error in one of the

Re: NSOperationQueue and for-loop

2012-10-03 Thread Mike Abdullah
On 3 Oct 2012, at 14:17, Koen van der Drift koenvanderdr...@gmail.com wrote: On Wed, Oct 3, 2012 at 9:03 AM, Koen van der Drift koenvanderdr...@gmail.com wrote: Good point, thanks. So are there any workarounds for that? I'm sure this pattern (doing lots of calculations concurrently, and

Re: App won't launch after a crash

2012-10-01 Thread Mike Abdullah
What's the exception? Should appear in the console log somewhere. On 1 Oct 2012, at 12:17, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Dear all, I've received a report from a user saying that, after a crash, the app won't launch any more. The crash log looks like below. It looks to

Re: App won't launch after a crash

2012-10-01 Thread Mike Abdullah
On 1 Oct 2012, at 13:13, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Oops, sorry, I chopped off the top of the report. Here it is: Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x, 0x Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Re: NSTextField not updated during large process

2012-10-01 Thread Mike Abdullah
On 1 Oct 2012, at 22:39, Koen van der Drift koenvanderdr...@gmail.com wrote: On Oct 1, 2012, at 8:59 AM, Koen van der Drift koenvanderdr...@gmail.com wrote: Ok, I decided to use NSOperation(Queue) as it is generally recommended over performSelectorXXX to be a more modern API, and have

Re: NSWindowController and nib in framework

2012-09-26 Thread Mike Abdullah
On 26 Sep 2012, at 17:37, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Sep 25, 2012, at 22:37 , Graham Cox graham@bigpond.com wrote: Is the app sandboxed? I ask because I've had reports of this same error from the odd user but have been unable to reproduce it so

Re: autosavesInPlace and sandbox

2012-09-25 Thread Mike Abdullah
On 23 Sep 2012, at 19:59, Georg Seifert georg.seif...@gmx.de wrote: Another alternative would be to ask the system to autosave to an alternative location which you do have write access to. Your users lose the ability to easily spot the autosaved copy of the doc, but otherwise it should

<    1   2   3   4   5   6   7   8   9   10   >