Re: What UIControl could this be?

2015-02-09 Thread Todd Freese
There are a bunch of projects on github to do this. 

Here is one I use and really like it:

https://github.com/dzenbot/DZNSegmentedControl 
https://github.com/dzenbot/DZNSegmentedControl

T


 On Feb 9, 2015, at 11:49 AM, David Duncan david.dun...@apple.com wrote:
 
 You can use the appearance proxy to change the look of many controls in 
 UIKit. In the case of UISegmentedControl you can set background images to use 
 for the segments, along with other properties. I think you can then just 
 configure the segment text with line breaks to get this specific look.
 
 On Feb 7, 2015, at 10:42 PM, Aaron Lewis the.warl0ck.1...@gmail.com wrote:
 
 Hi,
 
 I'm trying to create something similar in this image:
 http://ui4app.qiniudn.com/photo/app/527dae076803fa9c0103.png
 
 In the middle of the View there's a horizontal navigation bar, the
 190 photos, 429 followers and 253 following part.
 
 Looks similar to UISegmentControl I guess? But I'm not sure how it
 become like that
 
 -- 
 Best Regards,
 Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
 Finger Print:   9F67 391B B770 8FF6 99DC  D92D 87F6 2602 1371 4D33
 ___
 
 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:
 https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com
 
 This email sent to david.dun...@apple.com
 
 --
 David Duncan
 
 
 ___
 
 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:
 https://lists.apple.com/mailman/options/cocoa-dev/applecocoalist%40filmworkers.com
 
 This email sent to applecocoal...@filmworkers.com
 
 __
 This email has been scanned by the Symantec Email Security.cloud service.
 For more information please visit http://www.symanteccloud.com
 __


__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

How to get multiple NSURLs from Finder drop.

2012-09-03 Thread Todd Freese
I'm trying to get my App Sandboxed. I need to be able to accept a multi-file 
finder drop to import files. However, how did I get multiple NSURLs from the 
finder? There only seems to be two finder pasteboard types: 
NSFilenamesPboardType  NSURLPboardType. 

NSFilenamesPboardType won't work because it is passing strings. NSURLPboardType 
only accepts one a single file.

What am I missing here?

Todd 

__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: How to get multiple NSURLs from Finder drop.

2012-09-03 Thread Todd Freese
Thanks, didn't see the new API.

Todd

On Sep 3, 2012, at 4:12 PM, Kyle Sluder k...@ksluder.com wrote:

 
 On Sep 3, 2012, at 1:32 PM, Todd Freese applecocoal...@filmworkers.com 
 wrote:
 
 I'm trying to get my App Sandboxed. I need to be able to accept a multi-file 
 finder drop to import files. However, how did I get multiple NSURLs from the 
 finder? There only seems to be two finder pasteboard types: 
 NSFilenamesPboardType  NSURLPboardType. 
 
 NSFilenamesPboardType won't work because it is passing strings. 
 NSURLPboardType only accepts one a single file.
 
 What am I missing here?
 
 Use the modern NSPasteboardItem API instead. You can access multiple items, 
 each one being an NSURL.
 
 --Kyle Sluder
 
 __
 This email has been scanned by the Symantec Email Security.cloud service.
 For more information please visit http://www.symanteccloud.com
 __
 



__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSSavePanel default file type

2012-06-12 Thread Todd Freese
Are you using a pre-built export dialog or a standard save dialog with a custom 
accessory view? Sounds like you need to use a custom accessory view, although 
this would most likely require you to code all the export features.

Todd


On Jun 12, 2012, at 10:11 PM, Kurt Sutter wrote:

 I could, if there were an official api to get that NSPopUpButton. Is there? I 
 did not find one.
 
 Kurt
 
 On 12. Jun 2012, at 23:15, Martin Wierschin wrote:
 
 Our app allows to export its documents in a variety of formats, such as 
 jpeg, tiff, png, pdf . Hence, we have set up the NSSavePanel to sport a 
 file types popup that allows the user to select the desired file type.
 ...
 So, how can I set the item in the popup that is initially selected when the 
 save panel comes up? 
 
 Can't you just call methods on the NSPopUpButton you're setting as the 
 accessory view? Ideally probably in response to -[NSDocument 
 prepareSavePanel:]
 
 ~Martin
 
 
 
 
 ___
 
 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:
 https://lists.apple.com/mailman/options/cocoa-dev/applecocoalist%40filmworkers.com
 
 This email sent to applecocoal...@filmworkers.com
 
 __
 This email has been scanned by the Symantec Email Security.cloud service.
 For more information please visit http://www.symanteccloud.com
 __
 



__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: How to open CMYK TIF in Cocoa?

2012-01-27 Thread Todd Freese
I stand corrected as I have learned a lot more about this. They are 
premultiplied. Even though I got my feature working using libTiff, I like Jens 
idea of just walking thru the alpha data and manually setting the values. This 
would save having yet another lib linked in and seems to be a cleaner path.

Todd


On Jan 27, 2012, at 9:28 AM, Fritz Anderson wrote:

 Are the pixels not there, or are they premultiplied? 
 
 http://en.wikipedia.org/wiki/Alpha_compositing
 
   — F
 
 On 26 Jan 2012, at 8:21 PM, Todd Freese wrote:
 
 The issue is that it only loads the pixels that are allowed by the alpha. 
 Almost no graphic program does this. It should load all the pixels and 
 give you the option of using the alpha if needed. Another words, there is no 
 way to just get the full image.
 
 
 __
 This email has been scanned by the Symantec Email Security.cloud service.
 For more information please visit http://www.symanteccloud.com
 __
 



__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: How to open CMYK TIF in Cocoa?

2012-01-26 Thread Todd Freese
The problem seems to be with the embedded alpha channel in the TIF. It is 
always using the alpha when you try to do anything with the file. Is there an 
easy way to avoid this? In my case, I need the full image without the alpha.

Currently, if you open the TIF and display it, it will only show you the image 
thru the alpha. 

Todd



On Jan 25, 2012, at 9:54 PM, Ken Ferry wrote:

 NSImage handles everything CGImage does, and this includes CMYK. NSImage 
 loads bitmaps with ImageIO, which is what you'd do at the CG layer. 
 
 If the file isn't being read correctly, I would try to investigate if the 
 file was bad. 
 
 -ken
 
 On Jan 25, 2012, at 2:47 PM, douglas welton douglas_wel...@earthlink.net 
 wrote:
 
 What have you tried?  Did you try using one of the CGImage-related functions 
 to read the file?
 
 On Jan 24, 2012, at 3:01 PM, Todd Freese wrote:
 
 Is there an easy way to open a CMYK TIF file and put it into an NSImage? 
 Seems like the Framework is assuming the file is RGB.
 
 Todd
 
 __
 This email has been scanned by the Symantec Email Security.cloud service.
 For more information please visit http://www.symanteccloud.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:
 https://lists.apple.com/mailman/options/cocoa-dev/douglas_welton%40earthlink.net
 
 This email sent to douglas_wel...@earthlink.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:
 https://lists.apple.com/mailman/options/cocoa-dev/kenferry%40gmail.com
 
 This email sent to kenfe...@gmail.com
 
 __
 This email has been scanned by the Symantec Email Security.cloud service.
 For more information please visit http://www.symanteccloud.com
 __
 



__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: How to open CMYK TIF in Cocoa?

2012-01-26 Thread Todd Freese
This might be a bug in the framework. Preview has the same problem with any TIF 
file with an alpha channel in it.

t


On Jan 25, 2012, at 9:54 PM, Ken Ferry wrote:

 NSImage handles everything CGImage does, and this includes CMYK. NSImage 
 loads bitmaps with ImageIO, which is what you'd do at the CG layer. 
 
 If the file isn't being read correctly, I would try to investigate if the 
 file was bad. 
 
 -ken
 
 On Jan 25, 2012, at 2:47 PM, douglas welton douglas_wel...@earthlink.net 
 wrote:
 
 What have you tried?  Did you try using one of the CGImage-related functions 
 to read the file?
 
 On Jan 24, 2012, at 3:01 PM, Todd Freese wrote:
 
 Is there an easy way to open a CMYK TIF file and put it into an NSImage? 
 Seems like the Framework is assuming the file is RGB.
 
 Todd
 
 __
 This email has been scanned by the Symantec Email Security.cloud service.
 For more information please visit http://www.symanteccloud.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:
 https://lists.apple.com/mailman/options/cocoa-dev/douglas_welton%40earthlink.net
 
 This email sent to douglas_wel...@earthlink.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:
 https://lists.apple.com/mailman/options/cocoa-dev/kenferry%40gmail.com
 
 This email sent to kenfe...@gmail.com
 
 __
 This email has been scanned by the Symantec Email Security.cloud service.
 For more information please visit http://www.symanteccloud.com
 __
 



__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: How to open CMYK TIF in Cocoa?

2012-01-26 Thread Todd Freese
Sorry for all the emails…. 

This only seems to appear with CMYK TIF files.

If anyone has a workaround I would greatly appreciate it. I am really in the 
bind over this one.

Todd


On Jan 25, 2012, at 9:54 PM, Ken Ferry wrote:

 NSImage handles everything CGImage does, and this includes CMYK. NSImage 
 loads bitmaps with ImageIO, which is what you'd do at the CG layer. 
 
 If the file isn't being read correctly, I would try to investigate if the 
 file was bad. 
 
 -ken
 
 On Jan 25, 2012, at 2:47 PM, douglas welton douglas_wel...@earthlink.net 
 wrote:
 
 What have you tried?  Did you try using one of the CGImage-related functions 
 to read the file?
 
 On Jan 24, 2012, at 3:01 PM, Todd Freese wrote:
 
 Is there an easy way to open a CMYK TIF file and put it into an NSImage? 
 Seems like the Framework is assuming the file is RGB.
 
 Todd
 
 __
 This email has been scanned by the Symantec Email Security.cloud service.
 For more information please visit http://www.symanteccloud.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:
 https://lists.apple.com/mailman/options/cocoa-dev/douglas_welton%40earthlink.net
 
 This email sent to douglas_wel...@earthlink.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:
 https://lists.apple.com/mailman/options/cocoa-dev/kenferry%40gmail.com
 
 This email sent to kenfe...@gmail.com
 
 __
 This email has been scanned by the Symantec Email Security.cloud service.
 For more information please visit http://www.symanteccloud.com
 __
 



__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: How to open CMYK TIF in Cocoa?

2012-01-26 Thread Todd Freese
The issue is that it only loads the pixels that are allowed by the alpha. 
Almost no graphic program does this. It should load all the pixels and give 
you the option of using the alpha if needed. Another words, there is no way to 
just get the full image.

From my research, the original TIFF spec did not allow for alpha when the file 
is CMYK. It did for RGB. It was later updated by Adobe to support it which is 
why some programs support it and others do not. At least that is what several 
web sites state. 

You can't go the route of walking through the pixels and setting the alpha 
because the original data was already lost on file read. I ended up building 
and linking to libTIFF library which works like a champ.

Todd




On Jan 26, 2012, at 12:33 PM, Jens Alfke wrote:

 
 On Jan 26, 2012, at 8:25 AM, Todd Freese wrote:
 
 The problem seems to be with the embedded alpha channel in the TIF. It is 
 always using the alpha when you try to do anything with the file. Is there 
 an easy way to avoid this? In my case, I need the full image without the 
 alpha.
 
 Isn’t it the expected behavior for it to use the alpha channel if there’s one 
 present? That doesn’t sound like a bug to me.
 
 If you want to strip out the alpha channel, you may need to load the image 
 into a pixmap and then manually set the alpha component to 1.0 in all pixels. 
 I’m not sure if there’s a graphics call to do this, or if you need to walk 
 through the pixels in memory and manually OR 0xFF into the alpha component.
 
 —Jens
 
 
 __
 This email has been scanned by the Symantec Email Security.cloud service.
 For more information please visit http://www.symanteccloud.com
 __


__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

How to open CMYK TIF in Cocoa?

2012-01-24 Thread Todd Freese
Is there an easy way to open a CMYK TIF file and put it into an NSImage? Seems 
like the Framework is assuming the file is RGB.

Todd

__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Giving NSProgressIndicator a new look?

2012-01-17 Thread Todd Freese
Check out http://cocoacontrols.com/. (my new favorite site) It has several 
NSProgressIndicator subclasses. 

Todd


On Jan 17, 2012, at 10:36 AM, Robert Monaghan wrote:

 Hi Everyone..
 
 Can someone point me to a blog or webpage that describes how to give an 
 existing NSControl a face lift?
 I want to change the baby blue appearance of NSProgressIndicator, to match 
 my UI.
 
 Thanks!
 
 bob,
 
 ___
 
 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/applecocoalist%40filmworkers.com
 
 This email sent to applecocoal...@filmworkers.com
 
 __
 This email has been scanned by the Symantec Email Security.cloud service.
 For more information please visit http://www.symanteccloud.com
 __
 



__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.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


App opens in background after adding Growl support.

2011-10-04 Thread Todd Freese
I just added the Growl framework to my app and it works great. Except… now my 
app always launches in the background. Everything else works great. If I 
disable growl, my app opens in the foreground as expected. Does this on Snow 
Leopard or Lion.

Has anyone seen this?

Todd Freese
The Filmworkers Club

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__
___

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: App opens in background after adding Growl support.

2011-10-04 Thread Todd Freese
Are you just issuing a :
[GrowlApplicationBridge setGrowlDelegate:self];

at startup?

Todd


On Oct 4, 2011, at 3:31 PM, Laurent Daudelin wrote:

 On Oct 4, 2011, at 10:01, Todd Freese wrote:
 
 I just added the Growl framework to my app and it works great. Except… now 
 my app always launches in the background. Everything else works great. If I 
 disable growl, my app opens in the foreground as expected. Does this on Snow 
 Leopard or Lion.
 
 Has anyone seen this?
 
 I've been using Growl in 2 of my apps for a couple of years now and never 
 noticed this.
 
 -Laurent.
 -- 
 Laurent Daudelin
 AIM/iChat/Skype:LaurentDaudelin   
 http://www.nemesys-soft.com/
 Logiciels Nemesys Software
 laur...@nemesys-soft.com
 
 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email 
 __
 



__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__
___

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


Looking for Tab framework

2011-09-18 Thread Todd Freese
I am looking for recommendations for a open source framework to create small 
tabs. I have looked at PSMTabBarControl and Chromium Tabs. Just wondering if 
there are any others out there?

Todd Freese
The Filmworkers Club

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__
___

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: File Copy With Progress?

2011-08-12 Thread Todd Freese
That is what I figured. So odd, you would like that something as simple as a 
file copy with a progress bar would be a highly requested feature...  :-)

Todd


On Aug 11, 2011, at 7:06 PM, Gary L. Wade wrote:

 Not that I've found, and since that API leaked memory from 10.6 to 10.6.6 
 (fixed in 10.6.7), I even considered writing an observer thread to track 
 progress—thousands of copy operations add up.
 
 - Gary L. Wade (Sent from my iPhone)
 
 On Aug 11, 2011, at 6:22 PM, Todd Freese applecocoal...@filmworkers.com 
 wrote:
 
 Is there a Cocoa way in 10.6+ to copy a file with a progress call back? I 
 would love to rid my code of calls to FSCopyObjectASync and all of it's 
 non-sense. 
 
 Thanks!
 
 Todd Freese
 The Filmworkers Club
 
 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email 
 
 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email 
 __
 



__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__
___

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


File Copy With Progress?

2011-08-11 Thread Todd Freese
Is there a Cocoa way in 10.6+ to copy a file with a progress call back? I would 
love to rid my code of calls to FSCopyObjectASync and all of it's non-sense. 

Thanks!

Todd Freese
The Filmworkers Club

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__
___

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


Need HTTP Server JSON recommendations

2010-12-06 Thread Todd Freese
I have an existing CoreData app that now needs to share it's data via JSON. Can 
anyone recommend a framework or sample code that would include a simple HTTP 
server? I googled and found a bunch of JSON frameworks which look great. The 
part I need help with is the HTTP server.

Any suggestions or recommendations would be appreciated!

Todd

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__
___

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: Need HTTP Server JSON recommendations

2010-12-06 Thread Todd Freese
Thank you all for your recommendations! It is a huge help in getting me going 
in the right direction!

Todd

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__
___

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: Updating NSTableView

2009-05-14 Thread Todd Freese
If anyone has a tutorial or sample code for this it would be greatly  
appreciated! This issues comes up from time to time and there is not a  
lot sample code out there for it. Most of the posts are conceptual  
rather than examples.


Todd


On May 14, 2009, at 10:14 AM, Corbin Dunn wrote:



On May 14, 2009, at 7:49 AM, I. Savant wrote:


On Thu, May 14, 2009 at 10:41 AM, Scott Ribe scott_r...@killerbytes.com 
 wrote:






First a fast way to read the data off disk to begin with, for  
start up time.


Then caching of row heights when they are calculated. Finally  
binary search


of row heights/positions when mapping coordinates to row indexes.



Of course depending on what calculations are truly necessary, the  
first draw


may still be slow, but there's really no reason a redraw should be  
slow


after changing one (or a few) values.



Informative, thank you.



Yup, Scott's idea sounds like a good plan. Most people get good  
performance out of variable row heights by doing some sort of  
caching or heuristic that quickly determines the row height.


-corbin


___

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/applecocoalist%40filmworkers.com

This email sent to applecocoal...@filmworkers.com

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit 
http://www.messagelabs.com/email__



__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

___

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


RED Camera SDK wrapper?

2009-04-27 Thread Todd Freese
Just checking to see if anyone has created a Obj-C wrapper for the RED  
camera SDK before starting I start to do so


Thanks in advance

Todd Freese
The Filmworkers Club
___

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: De-Mystifying NSCell

2009-03-24 Thread Todd Freese
Thank you for creating this great video. If you are looking for  
another subject, I would suggest a video on subclassing NSCell. The  
list constantly has questions regarding subclassing NSCell for  
NSTableViews.


Todd Freese




On Mar 24, 2009, at 1:56 PM, Kyle Sluder wrote:


As many of you have pointed out, the video became unavailable sometime
last night.  Our server admin has fixed the problem and the video is
once again accessible.

Sorry for the inconvenience.

--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/applecocoalist%40filmworkers.com

This email sent to applecocoal...@filmworkers.com

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__



__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

___

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


Still can't get NSFormatter working....

2009-02-17 Thread Todd Freese
Still can't this NSFormatter to work. It does not seem to be getting  
called from my NSTextField.


Here is the formatter:

@implementation FileNameFormatter

- (NSString *)stringForObjectValue:(id)anObject
{
if ([anObject isKindOfClass:[NSString class]]) {
NSString *sourceString = [NSString stringWithString:anObject];
return sourceString;
} else {
return nil; 
}   
}

- (BOOL)getObjectValue:(id *)obj forString:(NSString *)aString  
errorDescription:(NSString **)error

{
if (aString != NULL) {
*obj = [NSString stringWithString:aString];
return YES;
} else {
return NO;
}
}

- (NSAttributedString *)attributedStringForObjectValue:(id)anObject  
withDefaultAttributes:(NSDictionary *)attributes

{
return nil;
}

- (BOOL)isPartialStringValid:(NSString **)partialStringPtr
   proposedSelectedRange:(NSRangePointer)proposedSelRangePtr
  originalString:(NSString *)origString
   originalSelectedRange:(NSRange)origSelRange
errorDescription:(NSString **)error
{
NSLog(@formatter called);
return NO;
}

@end

And here is how I assign it to the NSTextField:

FileNameFormatter *fileNameFormatter = [[[FileNameFormatter alloc]  
init] autorelease];

[nameField setFormatter:fileNameFormatter];

Any ideas?

Todd Freese




___

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: Still can't get NSFormatter working....

2009-02-17 Thread Todd Freese
Don't you hate when it is something so simple My ref to the field  
is null, do something came unhooked in IB.


Thanks!

Todd


On Feb 17, 2009, at 10:34 AM, Greg Titus wrote:

How about take a step back. Is 'nameField' hooked up in IB correctly  
so that the formatter is actually being set on a real field? You  
might try logging both 'nameField' and '[nameField formatter]' right  
after your code to assign it.


Hope this helps,
Greg

On Feb 17, 2009, at 7:57 AM, Todd Freese wrote:

Still can't this NSFormatter to work. It does not seem to be  
getting called from my NSTextField.


Here is the formatter:

@implementation FileNameFormatter

- (NSString *)stringForObjectValue:(id)anObject
{
if ([anObject isKindOfClass:[NSString class]]) {
NSString *sourceString = [NSString stringWithString:anObject];
return sourceString;
} else {
return nil; 
}   
}

- (BOOL)getObjectValue:(id *)obj forString:(NSString *)aString  
errorDescription:(NSString **)error

{
if (aString != NULL) {
*obj = [NSString stringWithString:aString];
return YES;
} else {
return NO;
}
}

- (NSAttributedString *)attributedStringForObjectValue:(id)anObject  
withDefaultAttributes:(NSDictionary *)attributes

{
return nil;
}

- (BOOL)isPartialStringValid:(NSString **)partialStringPtr
   proposedSelectedRange:(NSRangePointer)proposedSelRangePtr
  originalString:(NSString *)origString
   originalSelectedRange:(NSRange)origSelRange
errorDescription:(NSString **)error
{
NSLog(@formatter called);
return NO;
}

@end

And here is how I assign it to the NSTextField:

FileNameFormatter *fileNameFormatter = [[[FileNameFormatter alloc]  
init] autorelease];

[nameField setFormatter:fileNameFormatter];

Any ideas?

Todd Freese




___

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/greg%40omnigroup.com

This email sent to g...@omnigroup.com



__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit 
http://www.messagelabs.com/email__


___

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: NSFormatter not getting called

2009-02-16 Thread Todd Freese
So here it is with the other three methods. I had them, just snipped  
them out of the post. Ops!


@implementation FileNameFormatter
- (NSString *)stringForObjectValue:(id)anObject
{
if ([anObject isKindOfClass:[NSString class]]) {
NSString *sourceString = [NSString stringWithString:anObject];
return sourceString;
} else {
return nil; 
}   
}

- (BOOL)getObjectValue:(id *)obj forString:(NSString *)aString  
errorDescription:(NSString **)error

{
if (aString != NULL) {
*obj = [NSString stringWithString:aString];
return YES;
} else {
return NO;
}
}

- (NSAttributedString *)attributedStringForObjectValue:(id)anObject  
withDefaultAttributes:(NSDictionary *)attributes

{
	return [[[NSAttributedString alloc] initWithString:[self  
stringForObjectValue:anObject] attributes:attributes] autorelease];

}

- (BOOL)isPartialStringValid:(NSString *)partialString  
newEditingString:(NSString **)newString errorDescription:(NSString  
**)error

{
NSLog(@formatter called);  //NEVER GETS CALLED.
return YES;
}
@end
___

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