Re: CALayer bounds with ResizeAspect mask?

2008-10-09 Thread Colin Doncaster
Sorry for dragging out this thread, so I would turn off the animations by updating the frame and position within [CATransaction begin]; [CATransaction setValue: (id)kCFBooleanTrueforKey:kCATransactionDisableActions]; // my layer update code here [CATransaction commit];

Re: Mirror...rorriM

2008-10-09 Thread Raphael Sebbe
Yes Apple did so. CIAffineTransform. Raphael On Thu, Oct 9, 2008 at 5:09 AM, M Pulis [EMAIL PROTECTED] wrote: Anyone developed a mirror Image Unit? Just the kernel code and ROI would be enough. Would rather not re-invent what seems to be a wheel someone may already have written (like Picture

NSNumberFormatter unsigned long long bug?

2008-10-09 Thread Tom Bernard
NSNumberFormatter returns negative numbers for unsigned long long n such that (LLONG_MAX + 1) = n = ULLONG_MAX. Am I doing something incorrect, or should I report this as a bug? - (void)awakeFromNib { NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init]; [formatter

Re: Mirror...rorriM : Details Please

2008-10-09 Thread M Pulis
My apologies for being a bit dense, not asking for details and apparently late to the party, but I have looked at CIAffineTransform (filters, etc) for hours and can not make sense of it in making a flip. IB settings can not flip.I have used core image fun house and can not flip the image.

Re: Mirror...rorriM : Details Please

2008-10-09 Thread Stephen J. Butler
On Thu, Oct 9, 2008 at 2:47 AM, M Pulis [EMAIL PROTECTED] wrote: My apologies for being a bit dense, not asking for details and apparently late to the party, but I have looked at CIAffineTransform (filters, etc) for hours and can not make sense of it in making a flip. IB settings can not

Re: Where is close/cancel icon used in search field Safari etc.

2008-10-09 Thread Gerriet M. Denkmann
On 8 Oct 2008, at 19:49, Randall Meadows [EMAIL PROTECTED] wrote: On Oct 8, 2008, at 10:24 AM, David wrote: Hello, I'd like to have a button that looks like the close or cancel icon that is often present in Cocoa applications, but I can't find the icon. I'm surprised it doesn't show up as a

Re: Mirror...rorriM : Details Please

2008-10-09 Thread M Pulis
OK, I can see one of my problems IB and FH (funhouse) do not allow -1 nor differentiate between X and Y scale factors. Hoping just some simple settings would do. Digging deeper before I ask for more. Thanks Gary On Oct 9, 2008, at 1:13 AM, Stephen J. Butler wrote: On Thu, Oct 9,

Re: NSUndoManager [EMAIL PROTECTED] up Core Data database

2008-10-09 Thread Ruotger Skupin
Hi Ben, yes, there are some sporadic problems left in save: but these are exception I can handle. The NSUndoManager crashes were totally beyond my control, so this is going to help a lot. Thanks Ruotger Am 08.10.2008 um 22:23 schrieb Ben Trumbull: Ruotger, This has less to do

Re: NSUndoManager messing up Core Data database

2008-10-09 Thread Ruotger Skupin
Hi Ron, I wasn't clear enough on one point. The main thread context's undo manager crashes (the posted backtrace), but changing the DB only happens in the background thread. Assuming no binding changes the main thread context, there shouldn't be anything to undo in the main thread

Re: Mirror...rorriM : Details Please

2008-10-09 Thread Graham Cox
On 9 Oct 2008, at 8:50 pm, Jean-Daniel Dupas wrote: It does not differenciate bewteen X and Y, but it allows -1. Just use the text field to enter the value instead of using the slider. Le 9 oct. 08 à 10:36, M Pulis a écrit : OK, I can see one of my problems IB and FH (funhouse) do not

Multithreaded Core Data app design

2008-10-09 Thread Ruotger Skupin
Hi, Since Ron asked, let's move this to an own thread (no pun intended): Am 08.10.2008 um 18:23 schrieb Ron Lue-Sang: Hi, I have a core data database with two contexts attached to it. One read-only for the main thread and bindings, one read/write for a background thread that takes data

Re: Mirror...rorriM : Details Please

2008-10-09 Thread Jean-Daniel Dupas
It does not differenciate bewteen X and Y, but it allows -1. Just use the text field to enter the value instead of using the slider. Le 9 oct. 08 à 10:36, M Pulis a écrit : OK, I can see one of my problems IB and FH (funhouse) do not allow -1 nor differentiate between X and Y scale

Re: Where is close/cancel icon used in search field Safari etc.

2008-10-09 Thread Kevin Bracey
IB under the Media Tab Cheers Kevin ___ 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/Unsubscribe/Update

Re: Just when I thought I understood bindings.

2008-10-09 Thread Negm-Awad Amin
Am Do,09.10.2008 um 02:46 schrieb Tim Isted: Did you setup the bindings using Interface Builder or programatically? If programatically, they work in only one direction so you need to call [object1 bind:@value toObject:object2 withKeyPath:@whateverPathForKeyIs options:nil]; and

Re: Newb Question about Delegtes and callbacks

2008-10-09 Thread Negm-Awad Amin
Am Do,09.10.2008 um 07:26 schrieb Ron Green: Somehow in my education I missed out on delegates and callbacks. Can someone point me to a really good explanation that even a dummy like me can understand?

Catch Tablet Event.

2008-10-09 Thread Daniele Basile
hi, I have a trouble to catch and manage tablet event. For exactly I want to receive tablet event and mange it, but I don't want use or show window. In other word I have a main window that I use for main program, and in a secondary thread I have all source to receive and manage tablet event

PopupButton in IB 3.1 ToolBar

2008-10-09 Thread Jim Marschke
I want a Pull Down PopupButton in my toolbar. I've added a one in IB and as long as the type is set as Pop Up (not a Pull Down) all is well. When I change it to Pull Down I see repeated errors in the console: TestApp(85454,0xb0103000) malloc: free_garbage: garbage ptr = 0x12df4c0, has

Solved: refreshObject doesn't seem to work

2008-10-09 Thread Steve Steinitz
Ben, Thanks for your consummate help. On 8/10/08, Ben Trumbull wrote: Okay, that should work, although due to table level locking SQLite really only handles a small work group, or a scenario that is primarily readers. On busy weekends we only have three machines operating - we leave the

Re: Just when I thought I understood bindings.

2008-10-09 Thread Tim Isted
Sorry, my bad for writing confusion and rubbish at 1:40am. I meant to talk about discussion as here: http://www.cocoabuilder.com/archive/message/cocoa/2005/5/27/137132 but see also the next messages Tim On 9 Oct 2008, at 06:36, Scott Anguish wrote: On 8-Oct-08, at 8:46 PM, Tim Isted wrote:

NSView enterFullScreenMode:withOptions: Transition

2008-10-09 Thread Stefan Hafeneger
Hi, I would like to do a smooth transition when entering full screen mode using enterFullScreenMode:withOptions:. In a early beta version of Leopar there were keys for providing animations. But they were dropped later. The Apple document Animation Overview states: The NSView class

Re: Foundation Tool, readf, stdio, question!

2008-10-09 Thread Ken Thomases
On Oct 8, 2008, at 11:44 PM, Luis Rojas wrote: I am trying to make a tool that uses cocoa classes but i am stuck in one basic point. How do i read text on the terminal? and where can i find more information if i want to make cocoa applications that is main interface is the terminal.

Re: NSPersistentDocument No Support Save To (Save As?)

2008-10-09 Thread chaitanya pandit
On 09-Oct-08, at 2:52 AM, Mike Abdullah wrote: On 8 Oct 2008, at 20:48, chaitanya pandit wrote: Hi, I have implemented Save As... in one of my core data app. What i do is, in the saveToURL: ofType: forSaveOperation: error: method, if the save operation is NSSaveAsOperation, i migrate

Re: corrupt coredata DB

2008-10-09 Thread Marc Monguio
That looks bad, and it looks like you have enough information to be worth filing a bug. I just filed it. Bug ID# 6280722 What version of OSX are you on ? 10.5.5, tried on PPC and Intel with same results. Two other things you can do are (a) run pragma integrity_check on the db file,

Re: Where is close/cancel icon used in search field Safari etc.

2008-10-09 Thread Randall Meadows
On Oct 9, 2008, at 2:10 AM, Gerriet M. Denkmann wrote: Is there somewhere a list (human readable or programmatically accessable) of names understood by +[ NSImage imageNamed:]? The documentation says: Search the Application Kit framework for a shared image with the specified name. Where

NSDrawer detached from window?

2008-10-09 Thread Mark Roseman
I'm wondering if anyone has seen this behavior before. I have a NSDrawer, which in IB has its parent window set to my document's main window, and the content view set appropriately. I can open and close the drawer fine, and also resize its width by dragging the drawer's border. But,

Re: Optimized pixel manipulation

2008-10-09 Thread Christian Giordano
Hi Ken, thanks a lot for the long explanation. I'm quite happy with the optimization I'm doing, a mix of drawing (as you suggested) and pixel access. I just realized than with the CGBitmapContextCreate I can pass the reference to the pixels which can be updated later, this should be VERY handy.

Re: CALayer bounds with ResizeAspect mask?

2008-10-09 Thread David Duncan
On Oct 8, 2008, at 11:09 PM, Colin Doncaster wrote: so I would turn off the animations by updating the frame and position within [CATransaction begin]; [CATransaction setValue: (id)kCFBooleanTrueforKey:kCATransactionDisableActions]; [CATransaction commit]; or is there another more correct

Re: NSDrawer detached from window?

2008-10-09 Thread Andrew Merenbach
On Oct 9, 2008, at 8:20 AM, Mark Roseman wrote: I'm wondering if anyone has seen this behavior before. I have a NSDrawer, which in IB has its parent window set to my document's main window, and the content view set appropriately. I can open and close the drawer fine, and also resize its

QTMovie problem, thread-safety issue?

2008-10-09 Thread Daniel Thorpe
Hi everyone, I'm trying to access metadata from audio files (m4a files encoded using aac in iTunes) using the Quicktime QTMetaDataRef class. So, to do this I first need to get a QTMovie instance, hence I'm calling this bit of code: NSLog(@processing %@, fullpath); if([QTMovie

Drawing CATextLayer into a CGImageRef?

2008-10-09 Thread Tim Andersson
Hi there! In my application I have a CATextLayer (timeLayer) in a CALayer (clockLayer). If I apply a shadow to my timeLayer and then animate clockLayer using a CATransform3D, it animates VERY slowly. I figured I would solve this problem by creating a snapshot image of the timeLayer, setting a

rolling my own drawer-like child window

2008-10-09 Thread Matt Neuburg
I want to make a drawer that the user cannot close or slide. Since you can't stop the user from sliding the drawer at least partially closed, I was advised to use a child window instead. The problem is that I want the child window to *act* like a drawer, and in particular it should be capable of

Re: QTMovie problem, thread-safety issue?

2008-10-09 Thread Michael Ash
On Thu, Oct 9, 2008 at 12:24 PM, Daniel Thorpe [EMAIL PROTECTED] wrote: Hi everyone, I'm trying to access metadata from audio files (m4a files encoded using aac in iTunes) using the Quicktime QTMetaDataRef class. So, to do this I first need to get a QTMovie instance, hence I'm calling this

Re: Drawing CATextLayer into a CGImageRef?

2008-10-09 Thread John Harper
Hi, the best way to address this kind of thing is by drawing the shadow into the layer bitmap. You can do that by subclassing CATextLayer and adding a drawInContext: method something like: - (void)drawInContext:(CGContextRef)ctx { CGContextSetShadow (ctx, CGSizeMake (0, -4), 2);

Re: rolling my own drawer-like child window

2008-10-09 Thread Kyle Sluder
On Thu, Oct 9, 2008 at 1:17 PM, Matt Neuburg [EMAIL PROTECTED] wrote: I want to make a drawer that the user cannot close or slide. Since you can't stop the user from sliding the drawer at least partially closed, I was advised to use a child window instead. The problem is that I want the child

Re: Where is close/cancel icon used in search field Safari etc.

2008-10-09 Thread Sean McBride
On 10/9/08 10:10 AM, Gerriet M. Denkmann said: Is there somewhere a list (human readable or programmatically accessable) of names understood by +[ NSImage imageNamed:]? See also NSImage.h -- Sean McBride, B. Eng [EMAIL

Re: NSView enterFullScreenMode:withOptions: Transition

2008-10-09 Thread Sean McBride
On 10/9/08 3:41 PM, Stefan Hafeneger said: I would like to do a smooth transition when entering full screen mode using enterFullScreenMode:withOptions:. In a early beta version of Leopar there were keys for providing animations. But they were dropped later. Correct. And last I checked the docs

Finder Crashes on File Open

2008-10-09 Thread Brian Miller
Hi All, I have a Cocoa Core Data Document based application. When files created with this application are opened via the Finder (or double clicked), the Finder crashes and restarts every time. Opening files from within the application work fine, using Open With works fine. The Finder

How can be my application notified about user defaults changes?

2008-10-09 Thread Alexander Shmelev
Hello, My program UI depends on what measurement units are used. How can I get notification when AppleMeasurementUnits have been changed by Preferences application? Best regards, Alexander. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

[NSApp stop:]

2008-10-09 Thread Michiel de Hoon
Hi everybody, According to the documentation, [NSApp stop:] will break the flow of control out of the [NSApp run] method. While this is true, [NSApp run] doesn't notice that [NSApp stop:] was called until some other event comes along. So I call [NSApp stop:], nothing happens, and when I then

AddressBook (Repost from objc-language)

2008-10-09 Thread App Dev
Hi! I am reposting this as I mistakenly sent it to objc-language...oops. Documentation for ABAddressBook exposes a new method for 10.5: [ABAddressBook addressBook].(ABAddressBook Class Reference) Doc says that it Returns a new instance of ABAddressBook. As I am in need of using a private

Re: Finder Crashes on File Open

2008-10-09 Thread j o a r
Hello Brian, I hope that you've filed a formal bug report? If not, that should be your first priority in a case like this: http://developer.apple.com/bugreporter/ Thanks, j o a r On Oct 9, 2008, at 10:47 AM, Brian Miller wrote: I have a Cocoa Core Data Document based

Re: rolling my own drawer-like child window

2008-10-09 Thread Matt Neuburg
On or about 10/9/08 10:33 AM, thus spake Kyle Sluder [EMAIL PROTECTED]: On Thu, Oct 9, 2008 at 1:17 PM, Matt Neuburg [EMAIL PROTECTED] wrote: I want to make a drawer that the user cannot close or slide. Since you can't stop the user from sliding the drawer at least partially closed, I was

Re: [NSApp stop:]

2008-10-09 Thread Jason Coco
On Oct 9, 2008, at 09:15 , Michiel de Hoon wrote: Hi everybody, According to the documentation, [NSApp stop:] will break the flow of control out of the [NSApp run] method. While this is true, [NSApp run] doesn't notice that [NSApp stop:] was called until some other event comes along.

Re: How can be my application notified about user defaults changes?

2008-10-09 Thread chaitanya pandit
NSUserDefaultsDidChangeNotification On 09-Oct-08, at 5:51 PM, Alexander Shmelev wrote: Hello, My program UI depends on what measurement units are used. How can I get notification when AppleMeasurementUnits have been changed by Preferences application? Best regards, Alexander.

NSDraggingSource's - (void)draggedImage:begatAt: method

2008-10-09 Thread Sam Krishna
Has anyone been able to get NSDraggingSource's - (void)draggedImage:begatAt: method to work? When I implemented it, it didn't fire. Does anyone have any ideas how to trigger that method? TIA! Live Playfully, Sam ___ Cocoa-dev mailing list

Re: NSDraggingSource's - (void)draggedImage:begatAt: method

2008-10-09 Thread Fritz Anderson
On 9 Oct 2008, at 2:04 PM, Sam Krishna wrote: Has anyone been able to get NSDraggingSource's - (void)draggedImage:begatAt: method to work? When I implemented it, it didn't fire. Does anyone have any ideas how to trigger that method? Really dumb question: You're spelling it beganAt:, and

Re: Solved: refreshObject doesn't seem to work

2008-10-09 Thread Ben Trumbull
On Oct 9, 2008, at 7:10 AM, Steve Steinitz wrote: If this would be particularly useful, you should file an ER. Based on my small knowledge of the problem, it seems it might be worth an ER. I invite you to have your way with bugreport.apple.com. Despite it's name it also does

Re: Solved: refreshObject doesn't seem to work

2008-10-09 Thread Nick Zitzmann
On Oct 9, 2008, at 1:40 PM, Ben Trumbull wrote: That said, the addition of setRelationshipKeyPathsForPrefetching seemed to help even the SMB setup. Not surprising. More fetching will reduce the window of opportunity for caching problems. I'm guessing you are mostly impacted by the

NSView puzzle

2008-10-09 Thread DKJ
I'm having trouble with a subclass of NSView. In the code below, the variable str is an NSString set to a constant string when the view is initialised. During initialisation the NSPoint variable click is set to 0,0. When the view first displays, str is drawn correctly in the lower-left

Re: NSView puzzle

2008-10-09 Thread Andy Lee
Are you retaining str when the view is initialized? --Andy On Oct 9, 2008, at 4:17 PM, DKJ wrote: I'm having trouble with a subclass of NSView. In the code below, the variable str is an NSString set to a constant string when the view is initialised. During initialisation the NSPoint

Inconsistent HTML text size in TextField

2008-10-09 Thread David
I have a TextField which supports attributed text. I'm using HTML to populate the field. The problem is that depending on which userid I run the application in, the size of the text is different. How can that be? Is there some Safari setting or preference that can be affecting it?

Getting a bundles path from the ID

2008-10-09 Thread Ken Andrews
I have a need to find a bundle¹s path so that I can get information about the bundle but the only input that I have is the bundle ID. Is there some efficient mechanism that I can use to achieve this? Right now the only thing that I can think of is to search through all the likely paths for apps

Re: Getting a bundles path from the ID

2008-10-09 Thread Dave DeLong
Yep, just use: - (NSString *)absolutePathForAppBundleWithIdentifier:(NSString *)bundleIdentifier That is part of NSWorkspace and is used like: NSString * pathForiChat = [[NSWorkspace sharedWorkspace] absolutePathForAppBundleWithIdentifier:@com.apple.iChat]; HTH, Dave On Oct 9, 2008,

Re: rolling my own drawer-like child window

2008-10-09 Thread Mike Wright
On Oct. 9, 2008, at 10:17:23 -0700, Matt Neuburg [EMAIL PROTECTED] wrote: I want to make a drawer that the user cannot close or slide. Since you can't stop the user from sliding the drawer at least partially closed, I was advised to use a child window instead. Do you care if the user

Re: Solved: refreshObject doesn't seem to work

2008-10-09 Thread Ben Trumbull
On Oct 9, 2008, at 12:54 PM, Nick Zitzmann wrote: On Oct 9, 2008, at 1:40 PM, Ben Trumbull wrote: That said, the addition of setRelationshipKeyPathsForPrefetching seemed to help even the SMB setup. Not surprising. More fetching will reduce the window of opportunity for caching

Re: NSUndoManager messing up Core Data database

2008-10-09 Thread Ben Trumbull
btw.: I'd like to propose that there should be a way to switch a context to read-only. I'd file a radar if you want me to. File early, file often. Even if you already know another developer has, even if you came up with a work around. If a problem is annoying you, it's very helpful for us

Re: Solved: refreshObject doesn't seem to work

2008-10-09 Thread Nick Zitzmann
On Oct 9, 2008, at 2:47 PM, Ben Trumbull wrote: -refreshObject works on that single object (the receiver), not its related objects. But I want the latest information on the receiver's related records, not the latest information on the related objects, which can be refreshed later if

Re: Solved: refreshObject doesn't seem to work

2008-10-09 Thread Ben Trumbull
On Oct 9, 2008, at 1:57 PM, Nick Zitzmann wrote: On Oct 9, 2008, at 2:47 PM, Ben Trumbull wrote: -refreshObject works on that single object (the receiver), not its related objects. But I want the latest information on the receiver's related records, not the latest information on the

Re: NSView puzzle

2008-10-09 Thread DKJ
On 9 Oct, 2008, at 13:27, Andy Lee wrote: Are you retaining str when the view is initialized? No, since it was set as: str = @x; But your question made the penny drop: it was dict that needed retaining. All works well now. dkj ___

Re: NSView puzzle

2008-10-09 Thread Andy Lee
Ah, I see you did mention it was a constant string. Anyway, glad you found the problem. --Andy On Oct 9, 2008, at 5:30 PM, DKJ wrote: On 9 Oct, 2008, at 13:27, Andy Lee wrote: Are you retaining str when the view is initialized? No, since it was set as: str = @x; But your

Re: NSView puzzle

2008-10-09 Thread Bill Bumgarner
On Oct 9, 2008, at 2:30 PM, DKJ wrote: On 9 Oct, 2008, at 13:27, Andy Lee wrote: Are you retaining str when the view is initialized? No, since it was set as: str = @x; But your question made the penny drop: it was dict that needed retaining. All works well now. You should still

Re: NSView puzzle

2008-10-09 Thread Graham Cox
On 10 Oct 2008, at 7:17 am, DKJ wrote: - (void)mouseDown:(NSEvent *)ev { click = [self convertPoint:[ev locationInWindow] fromView:nil]; [self display]; } Don't call [self display]. Instead, call [self setNeedsDisplay:YES]; While the above will work, it's not the

Strategy for naming support folder

2008-10-09 Thread Graham Cox
Hi all, What's a good strategy for setting up a support folder in ~/ Application Support/? I'm thinking of using my main bundle's identifier or the application name to name the top-level folder, then maybe have a few subfolders within there for specific types of files (such as document

Re: Strategy for naming support folder

2008-10-09 Thread j o a r
On Oct 9, 2008, at 5:21 PM, Graham Cox wrote: I'm thinking of using my main bundle's identifier or the application name to name the top-level folder, then maybe have a few subfolders within there for specific types of files (such as document templates). Is that a good idea? What do others

Re: Strategy for naming support folder

2008-10-09 Thread Seth Willits
On Oct 9, 2008, at 5:30 PM, j o a r wrote: I'm thinking of using my main bundle's identifier or the application name to name the top-level folder, then maybe have a few subfolders within there for specific types of files (such as document templates). Is that a good idea? What do others do?

Re: Strategy for naming support folder

2008-10-09 Thread Graham Cox
On 10 Oct 2008, at 11:21 am, Graham Cox wrote: a support folder in ~/Application Support/? I meant ~/Library/Application Support/ of course. G. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: [NSApp stop:]

2008-10-09 Thread Michiel de Hoon
--- On Thu, 10/9/08, Jason Coco [EMAIL PROTECTED] wrote: Submit a bug report and use a CFRunLoop for now :) In my understanding, CFRunLoop cannot replace [NSApp run] for GUI applications. For example, see this thread: http://lists.apple.com/archives/Cocoa-dev/2008/Mar/msg01372.html So I

Re: [NSApp stop:]

2008-10-09 Thread Michael Ash
On Thu, Oct 9, 2008 at 9:15 AM, Michiel de Hoon [EMAIL PROTECTED] wrote: Hi everybody, According to the documentation, [NSApp stop:] will break the flow of control out of the [NSApp run] method. While this is true, [NSApp run] doesn't notice that [NSApp stop:] was called until some other

Quick Look help needed

2008-10-09 Thread Graham Cox
I thought I recalled seeing something to the effect that an easy way to add QL support was to package a document file and add a Quick Look folder to it containing a static preview image file. I'm having trouble getting that to work and can't find documentation relating specifically to this

Re: Quick Look help needed

2008-10-09 Thread Adam R. Maxwell
On Oct 9, 2008, at 7:14 PM, Graham Cox wrote: I thought I recalled seeing something to the effect that an easy way to add QL support was to package a document file and add a Quick Look folder to it containing a static preview image file. I'm having trouble getting that to work and can't

How a Controller in MainMenu.xib can send actions to a document object

2008-10-09 Thread Louis Demers
I'm working on a Document Based app My app has in its MainMenu.xib a controller that monitors a usb devices. I want this controller to send actions to the front most document. I tried many thing in the archives, including 1) in my controller in the MainMenu.xib [[NSApplication

Re: Quick Look help needed [SOLVED]

2008-10-09 Thread Graham Cox
On 10 Oct 2008, at 1:22 pm, Adam R. Maxwell wrote: From http://developer.apple.com/documentation/UserExperience/Conceptual/Quicklook_Programming_Guide/QLImplementationOverview/chapter_5_section_3.html : If you want to specify static thumbnail and preview images for a bundled document, you

Fwd: How a Controller in MainMenu.xib can send actions to a document object

2008-10-09 Thread Kyle Sluder
On Thu, Oct 9, 2008 at 10:24 PM, Louis Demers [EMAIL PROTECTED] wrote: [[NSApplication sharedApplication] sendAction:@selector(usbEvent:) to:(id)nil from:nil]; // From nil because this is just a c procedure Don't do this. It's using the responder chain; what if your document's window isn't

Extending URL Loading System - NSURLResponse

2008-10-09 Thread Aurora Phoenix
Hi! Due to strict requirements I am unfortunately unable to discuss openly, I am forced to implement low-level transport to an HTTP server. The app originally uses NSURLConnection, e.g. reply = [NSURLConnection sendSynchronousRequest: req returningResponse:

Re: [NSApp stop:]

2008-10-09 Thread Jason Coco
On Oct 9, 2008, at 20:47 , Michiel de Hoon wrote: --- On Thu, 10/9/08, Jason Coco [EMAIL PROTECTED] wrote: Submit a bug report and use a CFRunLoop for now :) In my understanding, CFRunLoop cannot replace [NSApp run] for GUI applications. For example, see this thread:

Re: Drawing an NSImage in a CALayer

2008-10-09 Thread Steven Degutis
Hi, I just came across this thread, and I solved a similar problem earlier. This is the code I ended up using: NSImage *oldImage; CALayer *layer; CGImageRef newImage = [[[oldImage representations] objectAtIndex:0] CGImage]; [layer setContents:(id)newImage]; It may be too late for this specific

How do I debug this?

2008-10-09 Thread Graham Cox
Stack trace: #0 0x92badc66 in -[NSException raise] #1 0x901c3283 in -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] #2 0x901a0122 in AppKitMenuEventHandler #3 0x90c79303 in DispatchEventToHandlers #4 0x90c7873d in SendEventToEventTargetInternal #5

Re: Strategy for naming support folder

2008-10-09 Thread Graham Cox
On 10 Oct 2008, at 11:30 am, j o a r wrote: Most apps use just the name, but I've never liked that and I support your idea of using the bundle identifier. Makes a lot of sense. Yep, seemed to make sense to me too, but I don't think I've ever seen it, which is why I hesitated. I think