Re: [iPhone] Custom -sizeWithFont: and CGContextRef question
On Jul 16, 2009, at 1:30 PM, Michael Hoy wrote: Hello all, For various reasons I'd like to implement a method similar in function to NSString's -sizeWithFont: (UIKit addition). The difference is it takes a CGFontRef. Here's a rough idea of the code (a slight adaptation of Timothy Ritchey's TTFontCell code, and I apologize because I can't find a link to it right now): - (CGSize)sizeWithFont:(CGFontRef)font ofSize:(CGFloat)size withKerning:(CGFloat)kerning { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetFont(context, font); CGContextSetFontSize(context, fontSize); CGContextSetCharacterSpacing(context, kerning); } The code works — however, it can only be called within a UIView's drawRect: method, for a valid context to be returned in UIGraphicsGetCurrentContext(); This method is only useful really if it can be called *before* the drawing code, for laying out views and such. I know that I need to create a CGContextRef and push it on the UIGraphics stack. My question is, what might be the best way to do this? I see I can use CGPDFContextCreate or CGBitmapContextCreate... which makes sense here? All I need to do is determine the size of a string w/ specified font, not actually draw it. Working directly from a CGFontRef is often not the Right Thing(tm) to do primarily because Quartz 2D is not the best way to draw text. Quartz 2D is really good at drawing glyphs but there's a long road from characters to glyphs. On the text system, there are public APIs to Core Text that which handle things like line layout, glyph substitution, bidi text adjustments etc... On the iPhone you're largely limited to what you can find in UIKit. Can you elaborate on why you are working from a CGFontRef instead of from a UIFont? If you absolutely MUST work from the CGFont level, you are likely to have to use routines like CGFontGetGlyphBBoxes and CGFontGetGlyphAdvances to compute the size yourself. Scott___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Cells selection in NSTableView
I need following functionality to be implemented in NSTableView. Selecting Multiple cells of single column in NSTableView. I subclassed NSTableView and created class TestTableView. I have done following 3 things. ... 3) I created custom class for NSTextFieldCell and overriden following method - (NSColor *)highlightColorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView { return nil; } Do not override -highlightColorWithFrame:inView:. Instead, override -setHighlighted: and -setBackgroundStyle: with empty implementations. Then override -drawWithFrame:inView:, and determine whether the cell (center point) is inside any selected cell rectangle. If yes, then -[super setHighlighted:YES], otherwise -[super setHighlighted:NO]. /Dado ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Codesign from Buid Server
On 14 Jul 2009, at 21:12, Richard Holliday wrote: We have a TeamCity build server setup to produce automatic builds for our cocoa application. We also code sign our apps but this part has to be done on a dev box as the build agent (OS X 10.5) doesn’t recognize the certificate in the system keychain (there is no login keychain when the build agent runs the post-build signing script). Has anyone else setup a build server which code signs their apps? Yes. If so, was there a trick to getting the certificate / keychain to play nicely. **Don't** put certificates in the system keychain (I learned this the hard way). You can easily break Server Admin because servermgrd isn't picky about which certificate it uses from the system keychain (it just uses the first thing it comes across, it seems), but Server Admin will throw a wobbly (with some very unhelpful error messages) if the certificate it finds doesn't validate for whatever reason. Instead, why not create a separate keychain to contain your code signing identity. This means you can lock it with a password that you only give out to users who are supposed to be able to trigger the signing step; either that, or if you want anyone to be able to do it, it means you can stick the password in a script without worrying too much (obviously set the permissions on the script according to your requirements). Then you need to do security unlock-keychain path-to-keychain followed by codesign --keychain path-to-keychain -s code-signing-identity thing-to-sign Obviously the unlock-keychain command is going to prompt for the password, so you'll have to arrange to feed it something appropriate. Either that, or use the -p option to pass the password to it (remembering that this will show up in the process list, so you had better not want the password to be secret if you do that). Kind regards, Alastair. -- http://alastairs-place.net ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
EventRef to NSEvent
Hi All, How can I convert EventRef to NSEvent on 10.4? I am only interested in getting the equivalent value for [NSEvent characters] from the EventRef. Thanks in advance -- Andy ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Iphone Grouped Table View for Settings
Look at the table view programming guide for how to build custom table cells. Just think of each cell as a custom view. They can even be built in IB easily enough. Drag UITableViewCell objects into your nib and lay them out however you like. Luke Sent from my iPhone. So I want a TableView but also a few other views in the same screen/window. How can I do this in IB. I see examples where the TableView is the only view on the screen, and it wants to size itself to max. Basically my thought was to just drag a TableView onto the view along with other objects, but the docs seem to strongly encourage using a TableViewController. In the MacOS side of things, I would drag a controller to the nib and connect it to my table, but the iPhone TableViewController seems to include the view already so I am not sure how to make it consume only a portion of the main view. T. ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Iphone Grouped Table View for Settings
On Jul 17, 2009, at 9:39 AM, Trygve Inda wrote: Look at the table view programming guide for how to build custom table cells. Just think of each cell as a custom view. They can even be built in IB easily enough. Drag UITableViewCell objects into your nib and lay them out however you like. Luke Sent from my iPhone. So I want a TableView but also a few other views in the same screen/ window. How can I do this in IB. I see examples where the TableView is the only view on the screen, and it wants to size itself to max. Basically my thought was to just drag a TableView onto the view along with other objects, but the docs seem to strongly encourage using a TableViewController. In the MacOS side of things, I would drag a controller to the nib and connect it to my table, but the iPhone TableViewController seems to include the view already so I am not sure how to make it consume only a portion of the main view. T. Create a UIViewController, and choose the option to also create a XIB (if available... otherwise make it manually and set it to your class). In your header file, create a UITableView IBOutlet, and be sure to conform to table view data source and delegate protocols. You'll need to create the various delegate methods, as they are not part of the UIViewController template. Open up your XIB file. Open up your view. Drag in a table view. Size as desired. Wire up outlet and delegate connections. Drag in other items as desired. Brian ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Iphone Grouped Table View for Settings
Create a view based xib. In the generic view provided add all your custom views including a UITableView. Don't drag a UITableViewController - just the UITableView itself. Then be sure to set the table views data source and delegate outlets to one or two of your objects that will handle those tasks. Luke Sent from my iPhone. On Jul 17, 2009, at 6:39 AM, Trygve Inda cocoa...@xericdesign.com wrote: Look at the table view programming guide for how to build custom table cells. Just think of each cell as a custom view. They can even be built in IB easily enough. Drag UITableViewCell objects into your nib and lay them out however you like. Luke Sent from my iPhone. So I want a TableView but also a few other views in the same screen/ window. How can I do this in IB. I see examples where the TableView is the only view on the screen, and it wants to size itself to max. Basically my thought was to just drag a TableView onto the view along with other objects, but the docs seem to strongly encourage using a TableViewController. In the MacOS side of things, I would drag a controller to the nib and connect it to my table, but the iPhone TableViewController seems to include the view already so I am not sure how to make it consume only a portion of the main view. T. ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Iphone Grouped Table View for Settings
On Jul 17, 2009, at 9:39 AM, Trygve Inda wrote: Look at the table view programming guide for how to build custom table cells. Just think of each cell as a custom view. They can even be built in IB easily enough. Drag UITableViewCell objects into your nib and lay them out however you like. Luke Sent from my iPhone. So I want a TableView but also a few other views in the same screen/ window. How can I do this in IB. I see examples where the TableView is the only view on the screen, and it wants to size itself to max. Basically my thought was to just drag a TableView onto the view along with other objects, but the docs seem to strongly encourage using a TableViewController. In the MacOS side of things, I would drag a controller to the nib and connect it to my table, but the iPhone TableViewController seems to include the view already so I am not sure how to make it consume only a portion of the main view. T. Create a UIViewController, and choose the option to also create a XIB (if available... otherwise make it manually and set it to your class). In your header file, create a UITableView IBOutlet, and be sure to conform to table view data source and delegate protocols. You'll need to create the various delegate methods, as they are not part of the UIViewController template. Open up your XIB file. Open up your view. Drag in a table view. Size as desired. Wire up outlet and delegate connections. Drag in other items as desired. So the UIViewController object goes in my MainDocument nib and then I create MyView nib which has a fileowner, responder and view. Can I just drag a connection from the UIViewController in one nib to the view object in another nib T. ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Iphone Grouped Table View for Settings
On Jul 17, 2009, at 7:15 AM, Trygve Inda wrote: Can I just drag a connection from the UIViewController in one nib to the view object in another nib No. You cannot make connection between nibs. I recommend reading up on using Interface Builder and nibs to get a better understanding of working with them before attacking this problem. Luke ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
missing vertical scroll bar
When I execute the application using the code excerpts shown below, the vertical scroll bar never appears, whether I add enough text to overflow the clip view, or resize the scroll view by resizing the window so that the existing text no longer fits within the clip view. All of the scroll view mechanism except for the display of the vertical scroll bar works as expected, since I can scroll vertically with the mouse scroll wheel.The horizontal scroll bar appears and disappears when I resize the scroll view horizontally. Changing the sequence of the set... messages, or issuing: [scview setAutohidesScrollers:NO] has no effect. scrollSize = [NSScrollView frameSizeForContentSize:NSMakeSize(tvw,tvh) hasHorizontalScroller:YES hasVerticalScroller:YES borderType:NSLineBorder]; ... scview = [[[NSScrollView alloc] initWithFrame: NSMakeRect(15.,15.,scrollSize.width,scrollSize.height)] retain]; [scview setBorderType:NSLineBorder]; [scview setAutoresizingMask:NSViewWidthSizable+NSViewHeightSizable]; [scview setHasHorizontalScroller:YES]; [scview setHasVerticalScroller:YES]; [scview setAutohidesScrollers:YES]; [[window contentView] addSubview:scview]; ... textView = [[NSTextView alloc] initWithFrame:NSMakeRect(0.,0.,tvw,tvh)]; textc = [textView textContainer]; [textc setWidthTracksTextView:NO]; [textc setHeightTracksTextView:NO]; [textView setHorizontallyResizable:YES]; [textView setVerticallyResizable:YES]; [textc setContainerSize:NSMakeSize(FLT_MAX,FLT_MAX)]; [textView setTextContainerInset:NSMakeSize(0.,0.)]; [textc setLineFragmentPadding:0.]; [textView setFont:fixed]; [scview setDocumentView:textView]; Does anyone see what I'm missing? Dale Miller dalelmil...@cableone.net ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: EventRef to NSEvent
On Jul 17, 2009, at 4:21 AM, Andy Bell wrote: Hi All, How can I convert EventRef to NSEvent on 10.4? I am only interested in getting the equivalent value for [NSEvent characters] from the EventRef. If you have a kEventTextInputUnicodeForKeyEvent event, then the Unicode character data is already in the event; use GetEventParameter (HIToolbox/CarbonEventsCore.h) with kEventParamTextInputSendText. If you have some other type of event, then the character data simply isn't there. -eric ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iTunes COM interface for Windows; need the equivalent for
On Thu, 16 Jul 2009 19:52:03 -0400, Daniel Dickison danieldicki...@gmail.com wrote: It's been a while since I dealt with this, but if I recall correctly, AppleScript gets you almost everything you can with the COM interface on Windows. The only exception was that you can't register to listen for player updates, though I believe there are undocumented distributed notifications that you can register for (with Cocoa). I've got a iTunes Scripting Bridge sample on my iDisk at: http://homepage.mac.com/geowar1/.Public/Sample%20Code/ScriptingBridgeiTunes.zip . -- Enjoy, George Warner, Schizophrenic Optimization Scientist Apple Developer Technical Support (DTS) ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: missing vertical scroll bar
Why are you doing this in code? You should be using IB to lay out your UI. --Kyle Sluder ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
NSCollection view item not receiving mouse events after redisplay
Hi everyone, I already tried to look for this one on Google, but had no luck. I have in my app a NSCollectionView that displays a sort of calendar of events, represented by custom views. In these views I make the delete X button appear on mouseEntered: and mouseMoved: events. Everything works fine until I delete one of the items. The item disappears and the NSCollectionView moves other items to fill the gap, so another item moves under the mouse pointer. My problem is that this item does not receive mouseMoved events anymore. I have to move the mouse pointer out of the view and then in again to make it work again. I hope I explained it well! Does anybody have some suggestions? Thank you very much. Cheers. -- Matteo Manferdini Pawn Software www.pawn-soft.com ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Iphone Grouped Table View for Settings
On Jul 17, 2009, at 7:15 AM, Trygve Inda wrote: Can I just drag a connection from the UIViewController in one nib to the view object in another nib No. You cannot make connection between nibs. I recommend reading up on using Interface Builder and nibs to get a better understanding of working with them before attacking this problem. Luke That's what I figured. I did get it working tho - where I can specify an external nib. Thanks! Just getting used to the slightly different methodology in iPhone vs Mac OS. T. ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
NSPanel and mouse input / activation
Hi, I have an NSPanel window in my app that I'm putting an OpenGL context in. I want the panel to receive mouse drag events without having to first click on the panel to activate it. I've not been able to find any info on how to do this in the docs or through many google searches. Currently, if I click on the panel, it gets activated and then I can drag the mouse around. How does one skip the activation event and get straight to receiving mouse down/drag/up events? thanks, wes ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSPanel and mouse input / activation
On Jul 17, 2009, at 4:28 PM, Wesley Smith wrote: Currently, if I click on the panel, it gets activated and then I can drag the mouse around. How does one skip the activation event and get straight to receiving mouse down/drag/up events? See -[NSView setAcceptsFirstMouse:] ... -- I.S. ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
RE: missing vertical scroll bar
Dale, I believe the recipe you want involves shoe-horning the scrollViewRect into its containing window. For an example, look at the DocumentWindowController's resizeWindowForViewSize method in TextEdit (shown below). HTH, Joel - (void)resizeWindowForViewSize:(NSSize)size { NSWindow *window = [self window]; NSRect origWindowFrame = [window frame]; if (![[self document] hasMultiplePages]) { size.width += (defaultTextPadding() * 2.0); } NSRect scrollViewRect = [[window contentView] frame]; scrollViewRect.size = [[scrollView class] frameSizeForContentSize:size hasHorizontalScroller:[scrollView hasHorizontalScroller] hasVerticalScroller:[scrollView hasVerticalScroller] borderType:[scrollView borderType]]; NSRect newFrame = [window frameRectForContentRect:scrollViewRect]; newFrame.origin = NSMakePoint(origWindowFrame.origin.x, NSMaxY(origWindowFrame) - newFrame.size.height); [window setFrame:newFrame display:YES]; } ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iTunes COM interface for Windows; need the equivalent for
Thanks for sharing your code, George. Is there any way to access AirTunes with Objective-C / Cocoa or AppleScript? I've seen some information on daap that allows the use of AirTunes, but it's a private API, so I'm hesitant to use it, even for my own personal projects. Although, given the fact that it apparently hasn't changed much since iTunes 4, it seems unlikely that Apple would make any sweeping changes. I read somewhere that Apple had planned on making the daap API public years ago, but I guess either that information was incorrect or they had a change of heart. It'd be nice to see a Cocoa-native iTunes 9 with a Core Data database to coincide with the release of Snow Leopard... ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: movieFileTypes, imageFileTypes and Info.plist's
Thanks! I think using public.image and public.movie are going to work just fine. I can now drop images and movies onto my app's Finder icon, although not the Dock icon, yet. Andrew On Jul 16, 2009, at 3:00 PM, Mike Abdullah wrote: Pretty certain you do need to this manually. One option could perhaps be to declare your plist as just accepting public.image and public.movie though. It would be possible for the user to drop an unsupported file type, but it would cover everything your above code does. And presumably it would be fairly rare for someone to drop in a video format that QuickTime can't handle. ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSPanel and mouse input / activation
thanks! that did the trick. best, wes On Fri, Jul 17, 2009 at 1:31 PM, I. Savantidiotsavant2...@gmail.com wrote: On Jul 17, 2009, at 4:28 PM, Wesley Smith wrote: Currently, if I click on the panel, it gets activated and then I can drag the mouse around. How does one skip the activation event and get straight to receiving mouse down/drag/up events? See -[NSView setAcceptsFirstMouse:] ... -- I.S. ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iTunes COM interface for Windows; need the equivalent for
Le 17 juil. 09 à 22:39, Brad Gibbs a écrit : Thanks for sharing your code, George. Is there any way to access AirTunes with Objective-C / Cocoa or AppleScript? I've seen some information on daap that allows the use of AirTunes, but it's a private API, so I'm hesitant to use it, even for my own personal projects. Although, given the fact that it apparently hasn't changed much since iTunes 4, it seems unlikely that Apple would make any sweeping changes. I read somewhere that Apple had planned on making the daap API public years ago, but I guess either that information was incorrect or they had a change of heart. It'd be nice to see a Cocoa-native iTunes 9 with a Core Data database to coincide with the release of Snow Leopard... I doubt Apple is going to port Cocoa/CoreData to Windows just for iTunes database… ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iTunes COM interface for Windows; need the equivalent for
I doubt Apple is going to port Cocoa/CoreData to Windows just for iTunes database� Not that I disagree, but what makes you think Cocoa doesn't already work on Windows? Openstep worked on Windows before it worked on Mac OS X. Cocoa is derived from Openstep. Project Builder (the predecessor to Xcode) is a nifty Cocoa application that Apple delivered for the Windows flavor of Web Objects as recently as September 17, 2003. If Cocoa apps from 2003 work on Windows, why would modern Cocoa not compile and run on Windows if Apple wanted it to? Core Foundation seems to be largely present in iTunes already, and Core Foundation is also partly derived from Openstep. ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Finding an available port for chat
I'm working on a little chat app. It's going to function very similar to a peer to peer app but across the internet. I have found the information i need on creating a stream once I know the address. but there will be persons like myself with draconian isp who block gobs of ports and make it hard to for chat apps to work. So I am curious, how can I, in a reasonably economic way, find an open port to talk on? Can I pass null to CFStreamCreatePairWithSocketToHost for the port and have it find the port on it's own? Or do I need to hard code a port? ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Finding an available port for chat
but there will be persons like myself with draconian isp who block gobs of ports and make it hard to for chat apps to work. There are a lot of very good reasons for a Draconian policy like that. :) how can I, in a reasonably economic way, find an open port to talk on? Are you trying to specify a specific port on your machine you know will get past the ISP's filtering? Or are you just trying to find a random high-numbered port that the ISP will unlikely have blocked? Or are you trying to get around the blocking in general. If you drop down to Berkeley sockets layer, you can specify a port for your server, or you can pass 0 as the port and the server will (somewhat) randomly choose a high numbered port for you. If you think lots of potential users are going to suffer port filtering, you could set up a server somewhere else on the Internet and have both users connect to that. For example, user's A and B connect to each other by connecting to a third machine C. That way neither user A or B need to have their machine open up a server on their machine. Todd ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: [Job] Cocoa developer at Skype (Mac/iPhone)
Not sure this'll get anywhere. IIRC, Apple expressly forbids VOIP apps on the iPhone platform... On Jul 8, 2009, at 11:34 AM, Janno Teelem wrote: Hello, Looking for an experienced Cocoa developer to join our Mac and iPhone development team. You will be working on the Mac and/or iPhone versions of Skype. Ideal candidate should be very familiar with application design, user interface implementation and have a strong understanding of Objective-C and Cocoa. Candidate should have demonstrated creative and critical thinking capabilities. Must be self-motivated and able to work well in a team environment. Pre-requisite Knowledge, Skills and Experience: * 5 years of professional software development experience. * Proven track record of delivering complex application software. * World-class skills in Objective-C and Cocoa. * Should have a strong knowledge of multithreaded programming, asynchronous and event driven application design. * Should be well disciplined in the application development processes of requirements analysis, functional spec development, prototyping, implementation, testing, documentation and maintenance. Values: * Goal-oriented. * Fast and effective. * Respectful and honest. * Early adopter of new technologies. * Positive attitude toward working in an environment of frequently changing requirements. Location: Tallinn (Estonia), Stockholm (Sweden), London (UK), so this position is based in Europe. If you're interested or know someone that might be, email j...@skype.net (Ref: COCOA-DEV-EE) or contact me via Skype, username janno_teelem Best regards, Janno Teelem ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/wsquires% 40satx.rr.com This email sent to wsqui...@satx.rr.com ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
NSTextView without NSScrollView
Is there a way to have an NSTextView that is not enclosed in an NSScrollView? IB doesn't seem to want to let me. It would be for displaying static rich text (certain things are harder, or maybe even impossible, to do with NSTextField). I know I can turn off drawing of the NSScrollView border, but it throws off the layout, because there's a margin around the text, at least on the left. -- James W. Walker, Innoventive Software LLC http://www.frameforge3d.com/ ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: [Job] Cocoa developer at Skype (Mac/iPhone)
Only via the cell network. Skype exists now on the iPhone platform on the App store. Via Wifi. -- CEO WebIS Sent from my phone On Jul 17, 2009, at 7:18 PM, William Squires wsqui...@satx.rr.com wrote: Not sure this'll get anywhere. IIRC, Apple expressly forbids VOIP apps on the iPhone platform... On Jul 8, 2009, at 11:34 AM, Janno Teelem wrote: Hello, Looking for an experienced Cocoa developer to join our Mac and iPhone development team. You will be working on the Mac and/or iPhone versions of Skype. Ideal candidate should be very familiar with application design, user interface implementation and have a strong understanding of Objective-C and Cocoa. Candidate should have demonstrated creative and critical thinking capabilities. Must be self-motivated and able to work well in a team environment. Pre-requisite Knowledge, Skills and Experience: * 5 years of professional software development experience. * Proven track record of delivering complex application software. * World-class skills in Objective-C and Cocoa. * Should have a strong knowledge of multithreaded programming, asynchronous and event driven application design. * Should be well disciplined in the application development processes of requirements analysis, functional spec development, prototyping, implementation, testing, documentation and maintenance. Values: * Goal-oriented. * Fast and effective. * Respectful and honest. * Early adopter of new technologies. * Positive attitude toward working in an environment of frequently changing requirements. Location: Tallinn (Estonia), Stockholm (Sweden), London (UK), so this position is based in Europe. If you're interested or know someone that might be, email j...@skype.net (Ref: COCOA-DEV-EE) or contact me via Skype, username janno_teelem Best regards, Janno Teelem ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/wsquires%40satx.rr.com This email sent to wsqui...@satx.rr.com ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/alex%40webis.net This email sent to a...@webis.net ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: [iPhone] Custom -sizeWithFont: and CGContextRef question
Custom fonts. It's the only way to do it. UIFont does not support custom fonts. -- CEO WebIS Sent from my phone On Jul 17, 2009, at 1:05 AM, Scott Thompson ea...@mac.com wrote: On Jul 16, 2009, at 1:30 PM, Michael Hoy wrote: Hello all, For various reasons I'd like to implement a method similar in function to NSString's -sizeWithFont: (UIKit addition). The difference is it takes a CGFontRef. Here's a rough idea of the code (a slight adaptation of Timothy Ritchey's TTFontCell code, and I apologize because I can't find a link to it right now): - (CGSize)sizeWithFont:(CGFontRef)font ofSize:(CGFloat)size withKerning:(CGFloat)kerning { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetFont(context, font); CGContextSetFontSize(context, fontSize); CGContextSetCharacterSpacing(context, kerning); } The code works — however, it can only be called within a UIView's drawRect: method, for a valid context to be returned in UIGraphics GetCurrentContext(); This method is only useful really if it can be called *before* the drawing code, for laying out views and such. I know that I need to create a CGContextRef and push it on the UIGraphics stack. My question is, what might be the best way to do this? I see I can use CGPDFContextCreate or CGBitmapContextCreate... which makes sense here? All I need to do is determine the size of a string w/ specified font, not actually draw it. Working directly from a CGFontRef is often not the Right Thing(tm) to do primarily because Quartz 2D is not the best way to draw text. Quartz 2D is really good at drawing glyphs but there's a long road from characters to glyphs. On the text system, there are public APIs to Core Text that which handle things like line layout, glyph substitution, bidi text adjustments etc... On the iPhone you're largely limited to what you can find in UIKit. Can you elaborate on why you are working from a CGFontRef instead of from a UIFont? If you absolutely MUST work from the CGFont level, you are likely to have to use routines like CGFontGetGlyphBBoxes and CGFontGetGlyphAdvances to compute the size yourself. Scott___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/alex%40webis.net This email sent to a...@webis.net ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSTextView without NSScrollView
On Fri, Jul 17, 2009 at 5:19 PM, James Walkerjam...@frameforge3d.com wrote: Is there a way to have an NSTextView that is not enclosed in an NSScrollView? IB doesn't seem to want to let me. It would be for displaying static rich text (certain things are harder, or maybe even impossible, to do with NSTextField). I know I can turn off drawing of the NSScrollView border, but it throws off the layout, because there's a margin around the text, at least on the left. How is this going to behave when autosizing? Perhaps removing the scroll view is not such a good idea. You can use -setTextContainerInset: to remove the whitespace if you desire. --Kyle Sluder ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: [Job] Cocoa developer at Skype (Mac/iPhone)
And works very well. I use it when traveling oversees.. Great for making calls from the hotel and attending meetings. Scott On Jul 17, 2009, at 5:29 PM, Alex Kac wrote: Only via the cell network. Skype exists now on the iPhone platform on the App store. Via Wifi. -- CEO WebIS Sent from my phone On Jul 17, 2009, at 7:18 PM, William Squires wsqui...@satx.rr.com wrote: Not sure this'll get anywhere. IIRC, Apple expressly forbids VOIP apps on the iPhone platform... On Jul 8, 2009, at 11:34 AM, Janno Teelem wrote: Hello, Looking for an experienced Cocoa developer to join our Mac and iPhone development team. You will be working on the Mac and/or iPhone versions of Skype. Ideal candidate should be very familiar with application design, user interface implementation and have a strong understanding of Objective-C and Cocoa. Candidate should have demonstrated creative and critical thinking capabilities. Must be self-motivated and able to work well in a team environment. Pre-requisite Knowledge, Skills and Experience: * 5 years of professional software development experience. * Proven track record of delivering complex application software. * World-class skills in Objective-C and Cocoa. * Should have a strong knowledge of multithreaded programming, asynchronous and event driven application design. * Should be well disciplined in the application development processes of requirements analysis, functional spec development, prototyping, implementation, testing, documentation and maintenance. Values: * Goal-oriented. * Fast and effective. * Respectful and honest. * Early adopter of new technologies. * Positive attitude toward working in an environment of frequently changing requirements. Location: Tallinn (Estonia), Stockholm (Sweden), London (UK), so this position is based in Europe. If you're interested or know someone that might be, email j...@skype.net (Ref: COCOA-DEV-EE) or contact me via Skype, username janno_teelem Best regards, Janno Teelem ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/wsquires%40satx.rr.com This email sent to wsqui...@satx.rr.com ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/alex%40webis.net This email sent to a...@webis.net ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/scottandrew%40roadrunner.com This email sent to scottand...@roadrunner.com ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSTextView without NSScrollView
Kyle Sluder wrote: On Fri, Jul 17, 2009 at 5:19 PM, James Walkerjam...@frameforge3d.com wrote: Is there a way to have an NSTextView that is not enclosed in an NSScrollView? IB doesn't seem to want to let me. It would be for displaying static rich text (certain things are harder, or maybe even impossible, to do with NSTextField). I know I can turn off drawing of the NSScrollView border, but it throws off the layout, because there's a margin around the text, at least on the left. How is this going to behave when autosizing? I don't understand the question. It's static text, when is it going to autosize? Perhaps removing the scroll view is not such a good idea. You can use -setTextContainerInset: to remove the whitespace if you desire. Well, that didn't work, but looking at the documentation for setTextContainerInset got me on the right track. Here's what did work: [[myText textContainer] setLineFragmentPadding: 0.0f]; Thanks. -- James W. Walker, Innoventive Software LLC http://www.frameforge3d.com/ ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Finding an available port for chat
I'm not trying to skirt around rules. Yahoo chat works on my machine, So did msn years back when I had it and so does teamspeak and ventrilo so I know there are ports out there that are free to be used I'm just not sure how to go about choosing one or if I should just hard code it. It's not a file exchange program just text chat and the two iPhones will communicate directly with each other rather than through my server since frankly I have high bandwidth demands as is. That and I cannot run a chat server daemon on the server since it's shared hosting rather than dedicated. So if I use the unix socket I can just pass 0 but I can't for the CFNetwork socket? On Jul 17, 2009, at 4:18 PM, Todd Heberlein wrote: but there will be persons like myself with draconian isp who block gobs of ports and make it hard to for chat apps to work. There are a lot of very good reasons for a Draconian policy like that. :) how can I, in a reasonably economic way, find an open port to talk on? Are you trying to specify a specific port on your machine you know will get past the ISP's filtering? Or are you just trying to find a random high-numbered port that the ISP will unlikely have blocked? Or are you trying to get around the blocking in general. If you drop down to Berkeley sockets layer, you can specify a port for your server, or you can pass 0 as the port and the server will (somewhat) randomly choose a high numbered port for you. If you think lots of potential users are going to suffer port filtering, you could set up a server somewhere else on the Internet and have both users connect to that. For example, user's A and B connect to each other by connecting to a third machine C. That way neither user A or B need to have their machine open up a server on their machine. Todd ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Finding an available port for chat
On Jul 17, 2009, at 9:08 PM, Development wrote: I'm not trying to skirt around rules. Yahoo chat works on my machine, So did msn years back when I had it and so does teamspeak and ventrilo so I know there are ports out there that are free to be used I'm just not sure how to go about choosing one or if I should just hard code it. It's not a file exchange program just text chat and the two iPhones will communicate directly with each other rather than through my server since frankly I have high bandwidth demands as is. That and I cannot run a chat server daemon on the server since it's shared hosting rather than dedicated. (As a nearly identical question asked less that a week ago - seriously, do some searching to turn up a wealth of suggestions and comments...): In general, this will only work if the two phones are on the same local network (such as on the wifi). If that's the case, you can just use Bonjour for discovery and it will handle assigning port number. Otherwise, for example, if the two devices are using 3G to connect to the internet, even if they are set up to accept connections, the cell network NAT will disallow incoming connections. More complicated approaches (google tcp hole punching or NAT Traversal) are needed for that (and I'm not sure that those techniques will work across cell networks). You can, however, have both devices connect to the same remote server, and have it forward packets between them, but that approach does not scale well. You're really going to have to do some more research on networking and peer-to-peer connections to understand the ramifications of trying to have one random device talk to another random device. Glenn Andreas gandr...@gandreas.com http://www.gandreas.com/ wicked fun! Mad, Bad, and Dangerous to Know ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSTextView without NSScrollView
On Fri, Jul 17, 2009 at 7:00 PM, James Walkerjam...@frameforge3d.com wrote: I don't understand the question. It's static text, when is it going to autosize? When the user resizes the window. --Kyle Sluder ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSTextView without NSScrollView
Kyle Sluder wrote: On Fri, Jul 17, 2009 at 7:00 PM, James Walkerjam...@frameforge3d.com wrote: I don't understand the question. It's static text, when is it going to autosize? When the user resizes the window. OK, fair enough. The case I was looking at was not a resizable window. -- James W. Walker, Innoventive Software LLC http://www.frameforge3d.com/ ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Public API for AirTunes?
Hi, I've been looking for a public API for AirTunes without success. Maybe I have the wrong name? Is it available under another name? There are a number of apps out now that use AirTunes (VLC, Rogue Amoeba's AirFoil, FireFly and others). Are they all hacking the daap? Daap is pretty well understood at this point and, given that it has been around since iTunes 4, it seems unlikely that Apple would break it, but I'm a little surprised so many released apps are using a private API. Thanks. Brad ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Public API for AirTunes?
Unfortunately it remains a private API. You can always file a Radar, but such efforts have been futile in the past. --Kyle Sluder ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: missing vertical scroll bar
On 17 Jul 2009, at 13:36, Joel Norvell wrote: I believe the recipe you want involves shoe-horning the scrollViewRect into its containing window. Also, I might just be missing something, but isn't there usually a NSClipView in the hierarchy somewhere? ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
[IB] - how to delete action or outlet?
Hi, All, I have no idea of how to remove an action or an outlet from AppController object, once added. For example, I've created appropriate modules AppController.h and .m, then wrote necessary code lines to declare an action stub and/or outlet. Then I open IB and drag necessary objects, like AppController, a text field or label or whatever else, connect them with AppController and look at the AppController's Info page. I see a header AppController.h and action (as well as outlet), I just created for it. OK. Now I'd like to remove that action and/or outlet. But I can't do it from IB, because - button is always gray unless I'll add a new (yet another) action or outlet. What to do now? I close IB, go to AppController.h and .m and remove the code. Then I open IB again, expecting to see previous action being disappeared... Oops... They're still in place, connected to nothing, but - button in appropriate panel is still gray. I can add a new action or outlet, but those, initially created, will be stay unremovable. Recently I've upgraded XCode to 3.1.3, but have still the same problem. Is this a bug or just my misunderstanding? Thanks. ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Finder Kind Entry
On Jul 16, 2009, at 1:13 PM, David Blanton wrote: I have searched the list archives and Google to no avail in trying to determine how the Kind value shown in the Finder is set. My initial thought was that the UTTypeDescription entry under UTExportedTypesDeclarations in the info.plist for a QuickLook Generator was the answer as the docs say this is a user viewable entry. But no, the Kind entry shows Plain Text. For the file in question, is the file extension or file type code unique to your app? If other apps also describe the file type, then their kind string might be used in preference to yours. Before the advent of UTIs, the kind string was determined by the CFBundleTypeName value in an element of the CFBundleDocumentTypes array. If both are present, I don't know which takes precedence. Lastly, does a QuickLook Generator really export types, or should it be treated as only importing them? Regards, Ken ___ 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 your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com