Re: How to subclass UIButton?

2010-04-08 Thread Jack Nutting
On Thu, Apr 8, 2010 at 8:42 AM, WT wrote: > > Is the fact that -initWithFrame: is the designated initializer documented > anywhere? The docs for UIButton don't mention it. If this is documented > and/or won't change, then it's the solution I've been looking for. > It is documented, but in a way

Re: How does Finder determine when a file is busy being written to the disk?

2010-04-08 Thread Matt Gough
FYI, kMagicBusyCreationDate is 8:34:56am on 14th Feb 1946 (GMT). When copying an entire folder, it only sets the top-level folder's creation time to this, not all the sub-items. I suspect, but haven't tested, that anything going through FSCopyObject will exhibit the same behaviour. Matt O

[ANN] AppKiDo-for-iPhone 0.984 fixes bug with 3.2 SDK

2010-04-08 Thread Andy Lee
Version 0.984 of AppKiDo-for-iPhone contains an important bug fix: Many thanks to Jeff Johnson for fixing an incompatibility with the latest 3.2 docs, such that no documentation would appear. Regular AppKiDo (for Cocoa) is unaffected. The o

Re: [ANN] AppKiDo-for-iPhone 0.984 fixes bug with 3.2 SDK

2010-04-08 Thread Roland King
that link didn't work for me for some reason, this one does though. http://homepage.mac.com/aglee/downloads/appkido.html On 08-Apr-2010, at 5:23 PM, Andy Lee wrote: > Version 0.984 of AppKiDo-for-iPhone contains an important bug fix: > >

CSS style string to NSAttributedString attributes conversion

2010-04-08 Thread jonat...@mugginsoft.com
I want to convert CSS style strings to NSAttributedString attributes. AppKit and WebKit don't seem to offer a solution. Does anyone know of any permissive licence third part code? Regards Jonathan Mitchell Developer http://www.mugginsoft.com __

Re: NSPrintInfo, setting filename for print to PDF?

2010-04-08 Thread Chaitanya Pandit
Hi, You should set the name in the NSPrintOperation object, look at the "setJobTitle:" method of NSPrintOperation Thanks, Chaitanya Pandit On Apr 8, 2010, at 2:56 AM, Brian Postow wrote: > Ok, I'm still working on this from my other question. I can see the printinfo > before I run the operat

Best way to Define Project Wide Static Strings?

2010-04-08 Thread Dave
Hi All, I have a number of Constant Strings that are project wide. I started off defining them at the top of a .m file but as the project has grown over the weeks I've pasted them into each new .m file as and when they are needed. I'm now tidying up my code and was wondering the best way

The right place for an importer in the document architecture

2010-04-08 Thread Gideon King
Hi I have an importer to convert different file types into my native file format. Due to the nature of the importer process, I need to run it as a separate converter, so the process flow is: 1. The user selects the file to open (not in my native format) 2. The program reads it and writes out a f

"Toll free" bridge from NSAttributedString * to CFAttributedStringRef

2010-04-08 Thread vincent habchi
Hi there, I've been fiddling with NSAttributedString lately, and the way to display them through Core Text. In the docs, I've read that NSAttributedString and CFAttributedStringRef were supposed to be "toll free" bridged; I assumed that meant that one could be used in lieu of the other with (or

Re: [ANN] AppKiDo-for-iPhone 0.984 fixes bug with 3.2 SDK

2010-04-08 Thread Jeff Johnson
I think Andy is a little confused here, maybe awake too late at night. :-) I've never used AppKiDo for iPhone. AppKiDo for Mac was definitely affected by the docs incompatibility, and version 0.984 fixes it. Also, as Roland King mentioned, here's the correct URL: http://homepage.mac.com/aglee/d

Re: "Toll free" bridge from NSAttributedString * to CFAttributedStringRef

2010-04-08 Thread glenn andreas
On Apr 8, 2010, at 7:02 AM, vincent habchi wrote: > Hi there, > > I've been fiddling with NSAttributedString lately, and the way to display > them through Core Text. In the docs, I've read that NSAttributedString and > CFAttributedStringRef were supposed to be "toll free" bridged; I assumed th

Re: Best way to Define Project Wide Static Strings?

2010-04-08 Thread Graham Cox
On 08/04/2010, at 9:23 PM, Dave wrote: > I have a number of Constant Strings that are project wide > static NSString kString1 = @"some string"; If they are project-wide they should not be 'static', which has the scope only of the file that they are declared in. On the other hand if that

Re: copy/paste in modal window

2010-04-08 Thread Dave McCarthy
Thanks, but surely there is _something_ I can do. Subclass NSTextField? In Carbon I could peek at the event queue and intercept command+C and command+V key down events; where might I do something similar for my modal NSWindow? On Apr 7, 2010, at 4:11 PM, Kyle Sluder wrote: > On Tue, Apr 6, 2010

Re: Problem with vCard and AddressBook ABPerson UID, HELP!!

2010-04-08 Thread Eric Giguere
Hi guys Thank you so much!! I knew I was missing an important part here. I'll pay more attention next time to the content of the Pasteboard types. The answers were all there. That also directed my to the proper way to actually handling the data content of the pboard, using the plist + NSPrope

Re: Best way to Define Project Wide Static Strings?

2010-04-08 Thread Filip van der Meeren
On 08 Apr 2010, at 15:32, Graham Cox wrote: > > On 08/04/2010, at 9:23 PM, Dave wrote: > >> I have a number of Constant Strings that are project wide > >> static NSString kString1 = @"some string"; that is NOT a constant string. NSString * const kString1 = @"lol"; is a constant string.

[NSMutableArray array]

2010-04-08 Thread Patrick M. Rutkowski
Is is safe to do [NSMutableArray array], even with the "array" class method is actually declared as +[NSArray array]. In other words, is it safe to call a super-class' class method. If not, why? If so, why? And also, is it generally safe in _all_ cases, or only just when specifically crafted to w

How to force a 32-bit/64-bit universal app to start in 32-bit mode on Leopard?

2010-04-08 Thread Oleg Krupnov
Hi, While it's good for my app to run in 64-bit mode on Snow Leopard, it turns out not desirable on Leopard, because of the delay of loading all 64-bit frameworks (in case if my app is the first 64-bit app launched after system boot). It literally makes me wait for about ten seconds, and the perfo

Re: [NSMutableArray array]

2010-04-08 Thread Dave DeLong
Yes, that is safe to use. It's safe to use because classes are really just special objects, which means they get all the class method inheritance that instances get with instance methods. This will work in every case where the implementors have used: [[[self alloc] init] autorelease] //this

Configuring NSPrinterInfo to print on a labeled paper.

2010-04-08 Thread Gustavo Pizano
Hello, Im working on a application that generates custom labels to stick into magazines with some information in it. Now I have an NSArray of Stickies on a NSViewController, so in the drawRect method of its view, Im iterating thru the array and displaying all the information per label moving the

Re: How to force a 32-bit/64-bit universal app to start in 32-bit mode on Leopard?

2010-04-08 Thread Kevin Wojniak
In your Info.plist add: LSMinimumSystemVersionByArchitecture x86_64 10.6.0 Kevin On Apr 8, 2010, at 7:21 AM, Oleg Krupnov wrote: > Hi, > > While it's good for my app to run in 64-bit mode on Snow Leopard, it > turns out not desirable on Leopard, because of the delay of load

Re: [NSMutableArray array]

2010-04-08 Thread Patrick M. Rutkowski
Ah, hmm; well in the case of them both being NSCFArray's, that does sound right; thanks :-) What I was worried about is that maybe NSMutableArray (or any sub-class in general) would need to do some special sub-class-specific initialization, which it might not have implemented. I guess though, if y

Delayed Autorelease

2010-04-08 Thread Patrick M. Rutkowski
Is it common in either Cocoa or UIKit to have an autorelease run happen only when the user does something? I'm in a situation where I believe the autorelease run is happening only when I push a bush or otherwise fiddled with a UI item; might that be the case, or am I confused? -Patrick P.S. Is t

Re: Delayed Autorelease

2010-04-08 Thread Patrick M. Rutkowski
It turns out that my memory error is coming form somewhere else. If you don't mind changing the topic of the thread for a moment: I have a Foo object which has an NSMutableArray of Bar objects. The Bar objects each have their own NSMutableArray of Baz objects. The weird thing is that the Foo and

What is the best approach for custom tab bar interface?

2010-04-08 Thread Philip Mobley
I need to have a tab style interface, but am not able to use the built in NSTabView because the style is not customizable. Basically I need something similar in look to the Safari tabs, but on a VERTICAL direction. At this point I am thinking about a custom NSView with CALayers for each tab el

Re: Delayed Autorelease

2010-04-08 Thread Hank Heijink (Mailinglists)
On Apr 8, 2010, at 10:36 AM, Patrick M. Rutkowski wrote: > Is it common in either Cocoa or UIKit to have an autorelease run > happen only when the user does something? > I'm in a situation where I believe the autorelease run is happening > only when I push a bush or otherwise fiddled with a UI it

Re: Delayed Autorelease

2010-04-08 Thread Steve Bird
On Apr 8, 2010, at 10:36 AM, Patrick M. Rutkowski wrote: > Is it common in either Cocoa or UIKit to have an autorelease run > happen only when the user does something? > > I'm in a situation where I believe the autorelease run is happening > only when I push a bush or otherwise fiddled with a UI

Re: Delayed Autorelease

2010-04-08 Thread Steve Bird
On Apr 8, 2010, at 11:03 AM, Patrick M. Rutkowski wrote: > It turns out that my memory error is coming form somewhere else. If > you don't mind changing the topic of the thread for a moment: > > I have a Foo object which has an NSMutableArray of Bar objects. The > Bar objects each have their own

Re: Delayed Autorelease

2010-04-08 Thread Joar Wingfors
On 8 apr 2010, at 08.03, Patrick M. Rutkowski wrote: > I have a Foo object which has an NSMutableArray of Bar objects. The > Bar objects each have their own NSMutableArray of Baz objects. > > The weird thing is that the Foo and it's array of Bar's are all living > well and good, but the Bar's ar

Single-click words in NSTableView / NSTextFieldCell

2010-04-08 Thread Tony P
Hi Folks, I'm trying to implement single-clicking for multiple words/phrases within an NSTableView / NSTextFieldCell, which seems surprisingly tricky. I've tried using NSAttributedString (in the hope I can use a special NSURLProtocol to intercept the hyperlink), but it takes four clicks t

Re: Delayed Autorelease

2010-04-08 Thread Dru Satori
This is a really common problem for developers coming from other platforms. In the Windows world the only thing really analogous to retain/release is the COM addref concepts, and even those lack the equivalent of autorelease. The short version, in my experience, is when in doubt, manage the mem

Re: What is the best approach for custom tab bar interface?

2010-04-08 Thread Gideon King
Absolutely. Use an NSTabView, but set it to be tabless, and create your own control to change the selected tab. Regards Gideon On 09/04/2010, at 1:06 AM, Philip Mobley wrote: > I need to have a tab style interface, but am not able to use the built in > NSTabView because the style is not custom

Re: Delayed Autorelease

2010-04-08 Thread Hank Heijink (Mailinglists)
On Apr 8, 2010, at 11:03 AM, Patrick M. Rutkowski wrote: > It turns out that my memory error is coming form somewhere else. If > you don't mind changing the topic of the thread for a moment: > > I have a Foo object which has an NSMutableArray of Bar objects. The > Bar objects each have their own

Re: Delayed Autorelease

2010-04-08 Thread Patrick M. Rutkowski
I meant that I believe that the array itself was still alive, but the Bar objects inside of it were getting dealloc'd > > How are Bars (no apostrophe) "living well" if they are deallocated? > > > > Steve Bird > Culverson Software - E

Re: Delayed Autorelease

2010-04-08 Thread Patrick M. Rutkowski
Sorry for the useless thread guys, I worked it all out :-) It was due to silly mistakes like forgetting to initialize the array in -init, and then having [self.array addObject: bar] be a no-op due to self.array being nil. Another mistake was self.array being initialized as self.array = [[NSMutabl

Re: Delayed Autorelease

2010-04-08 Thread Joar Wingfors
On 8 apr 2010, at 08.37, Patrick M. Rutkowski wrote: > Another mistake was self.array being initialized as > self.array = [[NSMutableArray alloc] init] > > when it should have been > self.array = [NSMutableArray array] > > I'm still somewhat new to this :-) > > I totally get what's going on, I

Re: How to force a 32-bit/64-bit universal app to start in 32-bit mode on Leopard?

2010-04-08 Thread Oleg Krupnov
This would be a perfect solution, but I've found that on Leopard, this key seems to be ignored, the system still launches my app in 64-bit mode (via Finder). What may I be doing wrong? Thanks! On Thu, Apr 8, 2010 at 7:28 AM, Kevin Wojniak wrote: > In your Info.plist add: > > LSMinimumSystemVers

Re: How to force a 32-bit/64-bit universal app to start in 32-bit mode on Leopard?

2010-04-08 Thread Kevin Wojniak
Are you launching with NSTask or some other variant? If so it won't work. You need to use Launch Services instead. I think there are some low-level APIs to use to launch with a specific architecture, but if you can use LS it handles all the dirty work for you. On Apr 8, 2010, at 8:53 AM, Oleg

Re: Delayed Autorelease

2010-04-08 Thread Patrick M. Rutkowski
Ah, a very good point, I'll turn that on right away; I can't believe I forgot that. Thanks :-) On Thu, Apr 8, 2010 at 11:40 AM, Joar Wingfors wrote: > > On 8 apr 2010, at 08.37, Patrick M. Rutkowski wrote: > >> Another mistake was self.array being initialized as >> self.array = [[NSMutableArray a

Re: How to force a 32-bit/64-bit universal app to start in 32-bit mode on Leopard?

2010-04-08 Thread Oleg Krupnov
No, I'm just double-clicking it in Finder. On Thu, Apr 8, 2010 at 8:57 AM, Kevin Wojniak wrote: > Are you launching with NSTask or some other variant? If so it won't work. You > need to use Launch Services instead. I think there are some low-level APIs to > use to launch with a specific archite

Re: [NSMutableArray array]

2010-04-08 Thread Jens Alfke
On Apr 8, 2010, at 7:35 AM, Patrick M. Rutkowski wrote: What I was worried about is that maybe NSMutableArray (or any sub-class in general) would need to do some special sub-class-specific initialization, which it might not have implemented. That's taken care of by the initializer methods (-i

Re: How to change to the smoother single-stage animation

2010-04-08 Thread David Duncan
On Apr 7, 2010, at 8:19 PM, Roy Lovejoy wrote: > something *else* is going on Yes, and it is probably a bug in the OS. If you can generate these warnings with a template, then please file a bug. -- David Duncan Apple DTS Animation and Printing ___ C

Re: CSS style string to NSAttributedString attributes conversion

2010-04-08 Thread Jens Alfke
On Apr 8, 2010, at 2:53 AM, jonat...@mugginsoft.com wrote: I want to convert CSS style strings to NSAttributedString attributes. AppKit and WebKit don't seem to offer a solution. Does anyone know of any permissive licence third part code? I'm not aware of anything that does this. Are you tal

Re: Query on File Wrapping

2010-04-08 Thread Jens Alfke
On Apr 7, 2010, at 11:56 PM, Swetha Chinthireddy wrote: Currently once the file size reaches 10MB , we are creating a new file and copying the last 4KB messages to the new file.But the requirement is to wrap the file i.e to always keep the latest 10MB traces. There isn't any filesystem

Re: CSS style string to NSAttributedString attributes conversion

2010-04-08 Thread Douglas Davidson
On Apr 8, 2010, at 2:53 AM, jonat...@mugginsoft.com wrote: > I want to convert CSS style strings to NSAttributedString attributes. > > AppKit and WebKit don't seem to offer a solution. > > Does anyone know of any permissive licence third part code? AppKit doesn't expose anything to handle CSS

Re: Single-click words in NSTableView / NSTextFieldCell

2010-04-08 Thread Corbin Dunn
On Apr 8, 2010, at 8:17 AM, Tony P wrote: > Hi Folks, > > I'm trying to implement single-clicking for multiple words/phrases within an > NSTableView / NSTextFieldCell, which seems surprisingly tricky. I've tried > using NSAttributedString (in the hope I can use a special NSURLProtocol to > in

Re: How to force a 32-bit/64-bit universal app to start in 32-bit mode on Leopard?

2010-04-08 Thread Kevin Wojniak
Not sure if it's needed, but you may need to run touch on the .app. On Apr 8, 2010, at 8:59 AM, Oleg Krupnov wrote: > No, I'm just double-clicking it in Finder. > > On Thu, Apr 8, 2010 at 8:57 AM, Kevin Wojniak wrote: >> Are you launching with NSTask or some other variant? If so it won't work.

Re: [NSMutableArray array]

2010-04-08 Thread Bill Bumgarner
On Apr 8, 2010, at 7:35 AM, Patrick M. Rutkowski wrote: > What I was worried about is that maybe NSMutableArray (or any > sub-class in general) would need to do some special sub-class-specific > initialization, which it might not have implemented. I guess though, > if you're going to be sub-class

Re: "Toll free" bridge from NSAttributedString * to CFAttributedStringRef

2010-04-08 Thread vincent habchi
Glenn, > NSAttributedString and CFAttributedStringRef "the data structure" are toll > free bridged, but that just means that the objects themselves can be > interchanged. The problem is that, like an NSDictionary, they can store > arbitrary objects that may not be toll free bridged - in this c

Re: How to force a 32-bit/64-bit universal app to start in 32-bit mode on Leopard? [SOLVED]

2010-04-08 Thread Oleg Krupnov
I have found the reason of my problem. It was due to one of the frameworks linked to my app. Namely, it's the Growl framework. When I remove this framework from the project, the app is launched with respect of the LSMinimumSystemVersionByArchitecture key. There is obviously a problem in the last

Re: IB Parses Class Names?

2010-04-08 Thread Kevin Cathey
Kyle has suggested the best approach. We try to make things easier to read by parsing the class name. However if you use the outline view, you can still always see the original type (GPSManager). Kevin On 7 Apr 2010, at 20:34, Kyle Sluder wrote: > On Apr 7, 2010, at 3:44 PM, "Patrick M. Rutkow

Re: What is the best approach for custom tab bar interface?

2010-04-08 Thread Philip Mobley
On Apr 8, 2010, at 8:22 AM, Gideon King wrote: > Absolutely. Use an NSTabView, but set it to be tabless, and create your own > control to change the selected tab. My question isn't how to get the Tabs to work, but the control which controls the tab switching. =) > I need to have a tab style i

Re: "Toll free" bridge from NSAttributedString * to CFAttributedStringRef

2010-04-08 Thread Jens Alfke
On Apr 8, 2010, at 9:48 AM, vincent habchi wrote: So what's the point in saying that both NSAttributed… and CFAttributed… are toll free bridged, if you cannot use one for another? I find it misleading. The objects themselves are bridged. NSAttributedString is fairly general-purpose and d

Re: IB Parses Class Names?

2010-04-08 Thread Patrick M. Rutkowski
Indeed, yeah. On Thu, Apr 8, 2010 at 12:59 PM, Kevin Cathey wrote: > Kyle has suggested the best approach. > > We try to make things easier to read by parsing the class name. However if > you use the outline view, you can still always see the original type > (GPSManager). > > Kevin > > On 7 Apr

Re: [NSMutableArray array]

2010-04-08 Thread Patrick M. Rutkowski
Agreed, but there's always the danger the +array method, which might actually be implemented in NSArray.m, will not properly initialize the more specific NSMutableArray object. Of course, in this specific case that's the case, but it might be the case with other class hierarchies. But, nonetheles

Re: [NSMutableArray array]

2010-04-08 Thread Fritz Anderson
On 8 Apr 2010, at 12:21 PM, Patrick M. Rutkowski wrote: > Agreed, but there's always the danger the +array method, which might > actually be implemented in NSArray.m, will not properly initialize the > more specific NSMutableArray object. > > Of course, in this specific case that's the case, but

Re: What is the best approach for custom tab bar interface?

2010-04-08 Thread Jack Carbaugh
Any control can tell the tab bar to switch the tabview ... or the tab bar itself... what was suggested was go tabless ... then have a button or any other control send a message to the tab bar to switch it's tab. Far easier to do this than to subclass the tab bar to display its tabs vertical

Re: [NSMutableArray array]

2010-04-08 Thread Shawn Erickson
On Thu, Apr 8, 2010 at 10:21 AM, Patrick M. Rutkowski wrote: > Agreed, but there's always the danger the +array method, which might > actually be implemented in NSArray.m, will not properly initialize the > more specific NSMutableArray object. A correct subclass MUST ensure that things are correc

Re: [NSMutableArray array]

2010-04-08 Thread Bill Bumgarner
On Apr 8, 2010, at 10:21 AM, Patrick M. Rutkowski wrote: > Agreed, but there's always the danger the +array method, which might > actually be implemented in NSArray.m, will not properly initialize the > more specific NSMutableArray object. > > Of course, in this specific case that's the case, bu

Re: How does Finder determine when a file is busy being written to the disk?

2010-04-08 Thread Lee Gillen
On Wed, Apr 7, 2010 at 11:25 PM, Jens Alfke wrote: > That may be true, but it's not directly related to the Finder graying out the > source file. As I said, it grays out the file when it itself starts copying > it. It has no way of telling when some other process is doing the copy. Unfortunatel

Re: How does Finder determine when a file is busy being written to the disk?

2010-04-08 Thread Jens Alfke
On Apr 8, 2010, at 10:53 AM, Lee Gillen wrote: Is there anyway for my app to see that the file is being written to? I was thinking of looking at 'fuser' or trying to open the file in write mode as a test. I don't know what 'fuser' is. Opening the file in write mode will always succeed; Unix

Re: How does Finder determine when a file is busy being written to the disk?

2010-04-08 Thread Lee Gillen
On Thu, Apr 8, 2010 at 1:58 PM, Jens Alfke wrote: > Maybe you should describe in detail what you're trying to do? There might be > a better way to approach the problem. My app watches a folder using FSEvents to see when files are added to it and then uploads those files to a server. It's kind of

Re: How does Finder determine when a file is busy being written to the disk?

2010-04-08 Thread Paul Sanders
Maybe poll the file size when you get your event and wait for it to stop changing. Paul Sanders. - Original Message - From: "Lee Gillen" To: "Jens Alfke" Cc: "Apple Developer Mailing List" Sent: Thursday, April 08, 2010 7:08 PM Subject: Re: How does Finder determine when a file is bu

Re: [NSMutableArray array]

2010-04-08 Thread glenn andreas
On Apr 8, 2010, at 12:29 PM, Bill Bumgarner wrote: > > On Apr 8, 2010, at 10:21 AM, Patrick M. Rutkowski wrote: > >> Agreed, but there's always the danger the +array method, which might >> actually be implemented in NSArray.m, will not properly initialize the >> more specific NSMutableArray obj

Re: [NSMutableArray array]

2010-04-08 Thread Michael Ash
On Thu, Apr 8, 2010 at 1:21 PM, Patrick M. Rutkowski wrote: > Agreed, but there's always the danger the +array method, which might > actually be implemented in NSArray.m, will not properly initialize the > more specific NSMutableArray object. > > Of course, in this specific case that's the case, b

Re: OS X Game Programming

2010-04-08 Thread Pascal Harris
Wow. What a fantastic collection of resources for me to digest. Thank you all so much. I'm very grateful. On 7 Apr 2010, at 21:52, Raffael Cavallaro wrote: > > On Apr 7, 2010, at 3:58 PM, Jens Alfke wrote: > >> On Apr 7, 2010, at 11:08 AM, Raffael Cavallaro wrote: >> >>> At the top of the

Re: What gets automatically localized?

2010-04-08 Thread Dave DeLong
This ticket has popped up on my radar again at work, and I still have a hard time believing that I have to translate things like "File", "Edit", "Undo", "Special Characters", etc myself. Is that really the case? Thanks, Dave On Jan 5, 2010, at 3:11 PM, Dave DeLong wrote: > Hi everyone, > >

CFRunLoopStop exception

2010-04-08 Thread vincent habchi
Hi, I was running quite an intensive test on creating/freeing threads running RunLoops, and I got a rather unexpected crash while executing CFRunLoopStop (): Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0002, 0x Crashed Thread: 0 Dispatch queue: com.

Re: [NSMutableArray array]

2010-04-08 Thread Patrick M. Rutkowski
Wow! Good stuff Michael :-) I can't believe I never noticed that. On Thu, Apr 8, 2010 at 3:07 PM, Michael Ash wrote: > On Thu, Apr 8, 2010 at 1:21 PM, Patrick M. Rutkowski > wrote: >> Agreed, but there's always the danger the +array method, which might >> actually be implemented in NSArray.m,

Re: CFRunLoopStop exception

2010-04-08 Thread vincent habchi
Well, I forgot to mention that each thread is responsible for the drawing of a CATileLayer, if that matters. Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact t

Re: CFRunLoopStop exception

2010-04-08 Thread Jesper Storm Bache
FYI: Remember that corefoundation is open source. 10.6.2 can be found at: http://www.opensource.apple.com/source/CF/CF-550.13/ EXC_BREAKPOINT is an "int 3" instruction (and HALT in CF code is typically used for this). >From CFRunLoopStop from 10.6.2 sources: void CFRunLoopWakeUp(CFRunLoopRef rl

Re: CFRunLoopStop exception

2010-04-08 Thread Greg Parker
On Apr 8, 2010, at 1:03 PM, vincent habchi wrote: > I was running quite an intensive test on creating/freeing threads running > RunLoops, and I got a rather unexpected crash while executing CFRunLoopStop > (): > > Exception Type: EXC_BREAKPOINT (SIGTRAP) > Exception Codes: 0x0002, 0

Re: The right place for an importer in the document architecture

2010-04-08 Thread Seth Willits
On Apr 8, 2010, at 4:46 AM, Gideon King wrote: > So I need to know where in the process I need to intercept the original file > open request and do the conversion, and forward the request to open the > converted file. It depends on your interface. If you're offering the ability to simply "open

Re: What gets automatically localized?

2010-04-08 Thread Ken Thomases
On Apr 8, 2010, at 2:53 PM, Dave DeLong wrote: > This ticket has popped up on my radar again at work, and I still have a hard > time believing that I have to translate things like "File", "Edit", "Undo", > "Special Characters", etc myself. > > Is that really the case? Apple provides a number o

Re: What gets automatically localized?

2010-04-08 Thread Dave DeLong
Aha, I knew I'd seen those around somewhere. Unfortunately, our setup is such that we can't use AppleGlot without a major overhaul of our build process, so I guess we're stuck with manual translation. :( Thanks, Dave On Apr 8, 2010, at 2:38 PM, Ken Thomases wrote: > On Apr 8, 2010, at 2:53 P

initWithObject Confusion

2010-04-08 Thread John Nairn
How is this possible? I wrote code in Snow Leopard to create an array with a single object using NSArray *myArray = [ [NSArray alloc] initWithObject:oneObject ] ; and it worked fine. When it crashed in either Leopard or Tiger, I went to NSArray documentation and found out that it does

Re: initWithObject Confusion

2010-04-08 Thread Kyle Sluder
On Thu, Apr 8, 2010 at 2:05 PM, John Nairn wrote: > 1. Why would the initWithObject: compile in the first place? (perhaps > because one of my custom classes defines an initWithObject: method) Correct. +alloc is typed to return id, which the compiler won't warn about if it has ever seen the method

Re: What gets automatically localized?

2010-04-08 Thread Kyle Sluder
On Thu, Apr 8, 2010 at 1:58 PM, Dave DeLong wrote: > Aha, I knew I'd seen those around somewhere.  Unfortunately, our setup is > such that we can't use AppleGlot without a major overhaul of our build > process, so I guess we're stuck with manual translation. :( The files aren't too bad. You cou

Re: What gets automatically localized?

2010-04-08 Thread Gary L. Wade
I don't know if this is documented somewhere, but if all you're needing is an actual string to copy into your project, you could try checking the frameworks' resources on your disk. If your project is linking against the actual runtime frameworks rather than one of the SDK versions, try doing a "F

Re: How does Finder determine when a file is busy being written to the disk?

2010-04-08 Thread Jens Alfke
On Apr 8, 2010, at 11:08 AM, Lee Gillen wrote: My app watches a folder using FSEvents to see when files are added to it and then uploads those files to a server. It's kind of like a hot folder. The issue is that when users are copying large files, especially from a network drive, the upload wil

NSPredicateEditor, _NSRuleEditorViewUnboundRowHolder and boundArray error moving to 10.6

2010-04-08 Thread Barry Wark
I have an application originally written for the 10.5 SDK. The app presents a document modal sheet (owned by a separate NSWindowController subclass) which contains an NSPredicateEditor. Starting with the move to OS X 10.6, I am getting the following exception when calling setObjectValue: on the pre

ATSApplicationFontsPath "just doesn't work" Was: Can I add my own chars...?

2010-04-08 Thread Jerry Krinock
On 2010 Mar 24, at 15:18, Quincey Morris wrote: > http://developer.apple.com/mac/library/documentation/General/Reference/InfoPlistKeyReference/Articles/GeneralPurposeKeys.html#//apple_ref/doc/uid/TP40009253-SW8 Well, it looks so damned simple. I can use an app such as SigMaker to make a new fo

Re: ATSApplicationFontsPath "just doesn't work" Was: Can I add my own chars...?

2010-04-08 Thread Kyle Sluder
On Thu, Apr 8, 2010 at 3:50 PM, Jerry Krinock wrote: > • Editing my app's Info.plist, add >             Key: ATSApplicationFontsPath >    String Value: Herculanum.ttf > > • Launch my app > > Expected Result: Text fields' "System font" is Herculanum. > Actual Result: Text fields' "System font" is s

Re: initWithObject Confusion

2010-04-08 Thread John Nairn
On Apr 8, 2010, at 2:10 PM, Kyle Sluder wrote: 2. Even if it compiles, how can it run in Snow Leopard when there is no initWithObject: selector for NSArray (or at least according to the NSArray docmentation there isn't one)? Have you checked your console output? Or there might be a private

Re: ATSApplicationFontsPath "just doesn't work" Was: Can I add my own chars...?

2010-04-08 Thread Jerry Krinock
On 2010 Apr 08, at 15:59, Kyle Sluder wrote: > On Thu, Apr 8, 2010 at 3:50 PM, Jerry Krinock wrote: >> • Editing my app's Info.plist, add >> Key: ATSApplicationFontsPath >>String Value: Herculanum.ttf >> >> Expected Result: Text fields' "System font" is Herculanum. >> Actual Res

Re: initWithObject Confusion

2010-04-08 Thread Nick Zitzmann
On Apr 8, 2010, at 5:03 PM, John Nairn wrote: > In Snow Leopard, however, there was no message and it worked fine as if Snow > Leopard read my mind and realized I wanted to create an array with a single > object. But, I am nervous about relying on the OS to read my mind (or even > have an idea

Re: ATSApplicationFontsPath "just doesn't work" Was: Can I add my own chars...?

2010-04-08 Thread Kyle Sluder
On Thu, Apr 8, 2010 at 4:05 PM, Jerry Krinock wrote: > Well, because a couple weeks ago you said that there was a way to do this... But the plist key you mentioned is documented to activate a font for a process, thus making it usable in your application. It has nothing to do with font cascades.

Moderator: iPhone OS 4.0 OFF LIMITS

2010-04-08 Thread Scott Anguish
iPhone OS 4.0 is under Non-Disclosure. We’ve already seen this NDA broken on another list (and pre-emptive moderation has been taken) There will be no second chances here. You break the NDA, you’re moderated and your information is sent to WWDR. Apple provides developer forms at devforums.apple

Changing the drag image on the fly

2010-04-08 Thread David Riggle
I'd like to change the drag image based on the drop location, the way iCal does. I found this tantalizing snippet in the WebCore code: if (cocoaImage) { // Dashboard wants to be able to set the drag image during dragging, but Cocoa does not allow this. // Instead we mus

NSTableView Key Value Observing performance pickle

2010-04-08 Thread Chris Idou
I seem to have got myself into some pickle with key value observing whereby things to do with NSTableView are freezing up for minutes at a time. Every time I pause the program there are things to do with adding and removing observers, but all of it is in Apple's code, so I'm not quite sure wha

Re: Problems with repetetive execution of netstat using NSTask and NSTimer

2010-04-08 Thread William Squires
Can you put a watchpoint on the expression "pipe == nil"? Maybe that would show you where it's going kablooey! On Apr 6, 2010, at 2:08 PM, Kazior Fukacz wrote: Thanks for your answers! By the way, are you using garbage collection? If not, then you're leaking several objects (those pointed

Re: "Toll free" bridge from NSAttributedString * to CFAttributedStringRef

2010-04-08 Thread Adam R. Maxwell
On Apr 8, 2010, at 5:02 AM, vincent habchi wrote: > I've been fiddling with NSAttributedString lately, and the way to display > them through Core Text. In the docs, I've read that NSAttributedString and > CFAttributedStringRef were supposed to be "toll free" bridged; I assumed that > meant tha

Interface Builder input panel fields not updated when OK button clicked

2010-04-08 Thread Ben Golding
This must be an old question but I can't seem to find a way to ask it so Google will lead me to the answer. I have an input sheet that drops down from the window, it works fine. A user updates input fields on it and then presses the OK button to close the sheet and update the app. In one of

Re: Interface Builder input panel fields not updated when OK button clicked

2010-04-08 Thread Jon Pugh
At 3:02 PM +1000 4/9/10, Ben Golding wrote: >I can't seem to find a way of ending editing on all the fields when the button >is pressed? Is there a way to do this? NSWindow endEditingFor: Forces the field editor to give up its first responder status and prepares it for its next assignment. -

Re: Interface Builder input panel fields not updated when OK button clicked

2010-04-08 Thread Ben Golding
On 09/04/2010, at 15:08, Jon Pugh wrote: > At 3:02 PM +1000 4/9/10, Ben Golding wrote: >> I can't seem to find a way of ending editing on all the fields when the >> button is pressed? Is there a way to do this? > > NSWindow > > endEditingFor: > Forces the field editor to give up its first res

Re: "Toll free" bridge from NSAttributedString * to CFAttributedStringRef

2010-04-08 Thread vincent habchi
Adam, > You need to have a current NSGraphicsContext for NSColor (and possibly other) > attributes. This is pretty easy, as in the following snippet from my own > code: > >[NSGraphicsContext saveGraphicsState]; >[NSGraphicsContext setCurrentContext:[NSGraphicsContext > graphicsContext

Re: CFRunLoopStop exception

2010-04-08 Thread vincent habchi
Jesper, > FYI: Remember that corefoundation is open source. 10.6.2 can be found at: > http://www.opensource.apple.com/source/CF/CF-550.13/ Thanks for the link, very instructive. > void CFRunLoopWakeUp(CFRunLoopRef rl) { > CHECK_FOR_FORK(); > #if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET

Re: CFRunLoopStop exception

2010-04-08 Thread Greg Parker
On Apr 8, 2010, at 10:40 PM, vincent habchi wrote: >> void CFRunLoopWakeUp(CFRunLoopRef rl) { >>CHECK_FOR_FORK(); >> #if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED >>kern_return_t ret; >>/* We unconditionally try to send the message, since we don't want >> * to lose a wa