NSTableView don't show content

2013-07-15 Thread Folami Nguyen
Dear All, In MAC OS 10.6.8, I use NSTableView with CALayer enabled. Everything OK. However, sometime, all NSTableView in my application doesn't show data. I can click on the row but I cannot see it. Please help me how to fix it. Thanks you very much. Best regards,

Re: Advanced Techniques

2013-07-15 Thread Andreas Grosam
On 14.07.2013, at 01:09, Arved von Brasch co...@atgo.org wrote: Hello list, I'm hoping the list might have some recommendations on books or other sources. My web searches aren't turning up too much that is helpful, as so much is geared towards iOS these days. What have you searched so

height of UITableView with exactly two rows

2013-07-15 Thread Koen van der Drift
I'd like to add a tableview with exactly two rows under a custom view. I can do that for one size of screen, and empirically figure out what he height of the table should be and be done with it. But of course that doesn't work anymore when I move to a different size screen or iOS version. So

Re: height of UITableView with exactly two rows

2013-07-15 Thread Diederik Meijer | Ten Horses
Won't, setting the row height in - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { return something; } and then multiplying that something with 2 work? Add headerView/footerView heights if needed.. Op Jul 15, 2013, om 1:02 PM heeft Koen

Re: height of UITableView with exactly two rows

2013-07-15 Thread Koen van der Drift
On Jul 15, 2013, at 7:08 AM, Diederik Meijer | Ten Horses diede...@tenhorses.com wrote: Won't, setting the row height in - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *) indexPath { return something; } and then multiplying that

Re: Cocoa-dev Digest, Vol 10, Issue 428

2013-07-15 Thread Pamela Grandt
I will be out of the office Fri. July 12 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update

Re: height of UITableView with exactly two rows

2013-07-15 Thread Diederik Meijer | Ten Horses
Isn't the standard 44? Then 2 rows would be 88, or am I missing something? Op Jul 15, 2013, om 1:08 PM heeft Diederik Meijer | Ten Horses diede...@tenhorses.com het volgende geschreven: Won't, setting the row height in - (CGFloat)tableView:(UITableView *)tableView

Re: height of UITableView with exactly two rows

2013-07-15 Thread Koen van der Drift
On Jul 15, 2013, at 7:14 AM, Diederik Meijer | Ten Horses diede...@tenhorses.com wrote: Isn't the standard 44? Then 2 rows would be 88, or am I missing something? If that won't change in future iOS versions or different screen sizes, then I can use that indeed. Thanks, - Koen.

Re: height of UITableView with exactly two rows

2013-07-15 Thread Roland King
You can get rectForSection: and other metrics, add them up and that should give you the height the table actually is. On 15 Jul, 2013, at 7:13 PM, Koen van der Drift koenvanderdr...@gmail.com wrote: On Jul 15, 2013, at 7:08 AM, Diederik Meijer | Ten Horses diede...@tenhorses.com wrote:

Re: height of UITableView with exactly two rows

2013-07-15 Thread Koen van der Drift
On Jul 15, 2013, at 7:20 AM, Roland King r...@rols.org wrote: You can get rectForSection: and other metrics, add them up and that should give you the height the table actually is. Hmm, not sure if that will work, since I need to know the height already when I create the table. I think I

Re: height of UITableView with exactly two rows

2013-07-15 Thread Diederik Meijer | Ten Horses
Seems to be equal on iPhone and iPad Verstuurd vanaf mijn iPhone Op 15 jul. 2013 om 13:18 heeft Koen van der Drift koenvanderdr...@gmail.com het volgende geschreven: On Jul 15, 2013, at 7:14 AM, Diederik Meijer | Ten Horses diede...@tenhorses.com wrote: Isn't the standard 44? Then 2

EventKit calendarItemIdentifier and calendarItemExternalIdentifier

2013-07-15 Thread Gideon King
I am converting some code from CalendarStore to EventKit, and see that there are now two identifiers. It looks as if it I want to enable access to events across multiple devices, I should always store the calendarItemExternalIdentifier - correct? It is not clear from the documentation whether

Re: height of UITableView with exactly two rows

2013-07-15 Thread Koen van der Drift
Maybe I should rephrase my question :) I have two views, one should be pinned to the bottom of the screen with a fixed height of 88 pixels, the other view should take up the rest of the screen. How can I accomplish this without using a xib or storyboard? Thanks, - Koen. On Jul 15, 2013,

Re: height of UITableView with exactly two rows

2013-07-15 Thread Roland King
In many ways. If you are using autolayout then set the height of the view to 88 points (points != pixels). You can use autolayout without storyboards, you can implement your own layout if you aren't using Autolayout. If you actually know your view needs an 88 pixel height then that's pretty

Re: height of UITableView with exactly two rows

2013-07-15 Thread Koen van der Drift
On Jul 15, 2013, at 10:01 AM, Roland King r...@rols.org wrote: In many ways. If you are using autolayout then set the height of the view to 88 points (points != pixels). You can use autolayout without storyboards, you can implement your own layout if you aren't using Autolayout. If you

seamlessly saving to a different file

2013-07-15 Thread Steve Mills
We have a particular non-standard feature that will cause a document of an old format and extension to automatically save to a new format and extension when the user simply hits Save. The old file is moved to a backup folder after the save is successful. (Yes, this feature is normally turned

Re: Advanced Techniques

2013-07-15 Thread David Brittain
Have you looked at ImageKit: https://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/ImageKitProgrammingGuide/Introduction/Introduction.html |IKImageBrowserView |may do what you need. Dave On 7/13/13 4:09 PM, Arved von Brasch wrote: Hello list, I'm hoping the list

Converting RTFD to Word with embedded images

2013-07-15 Thread Buddy Kurz
I am trying to find the magic incantation to take an .RTFD document with a jpg attachment and convert it to a .DOC document. (in code) My first lazy thought was to use textutil -convert doc mydocument.rtfd This does not work. (10.7.5) It creates a perfect good Word document without the image.

Re: seamlessly saving to a different file

2013-07-15 Thread Mike Abdullah
On 15 Jul 2013, at 15:38, Steve Mills smi...@makemusic.com wrote: We have a particular non-standard feature that will cause a document of an old format and extension to automatically save to a new format and extension when the user simply hits Save. The old file is moved to a backup folder

Re: Converting RTFD to Word with embedded images

2013-07-15 Thread Kyle Sluder
On Jul 15, 2013, at 8:59 AM, Buddy Kurz buddyk...@mac.com wrote: Pages can export to Word with the attachment. Why can't I? Pages probably doesn't use NSString's Word exporter. What happens if you use TextEdit? --Kyle Sluder ___ Cocoa-dev mailing

Re: seamlessly saving to a different file

2013-07-15 Thread Steve Mills
On Jul 15, 2013, at 11:00:14, Mike Abdullah mabdul...@karelia.com wrote: NSDocument has an interesting method, -initForURL:withContentsOfURL:ofType:error: Can you have document opening call this instead, or follow the same pattern, to achieve what you want? That just might be the ticket

Re: Converting RTFD to Word with embedded images

2013-07-15 Thread Jeffrey Oleander
On 2013 Jul 15, at 13:06, Kyle Sluder wrote: On Jul 15, 2013, at 8:59 AM, Buddy Kurz buddyk...@mac.com wrote: Pages can export to Word with the attachment. Why can't I? Pages probably doesn't use NSString's Word exporter. What happens if you use TextEdit? What is RTFD format? It's a

Re: Converting RTFD to Word with embedded images

2013-07-15 Thread Buddy Kurz
textEdit only allows Rich Text Format with Attachments or Web Archive when there is an image in the document. That could suggest that this is not supported. I am hoping that is not the case. On Jul 15, 2013, at 10:06 AM, Kyle Sluder wrote: On Jul 15, 2013, at 8:59 AM, Buddy Kurz

Curious about a property being declared in the .h and the .m file for iOS

2013-07-15 Thread Alex Zavatone
I'm looking at the wonderful examples here: http://www.objc.io/issue-2/common-background-practices.html And the particular file from the Asynchronous Networking section here: https://github.com/objcio/issue-2-background-networking Since I work in Xcode 4.2 often due to Snow Leopard, I wanted

Re: seamlessly saving to a different file

2013-07-15 Thread Steve Mills
On Jul 15, 2013, at 12:44:33, Steve Mills smi...@makemusic.com wrote: On Jul 15, 2013, at 11:00:14, Mike Abdullah mabdul...@karelia.com wrote: NSDocument has an interesting method, -initForURL:withContentsOfURL:ofType:error: Can you have document opening call this instead, or follow the

Re: Curious about a property being declared in the .h and the .m file for iOS

2013-07-15 Thread Uli Kusterer
On Jul 15, 2013, at 8:31 PM, Alex Zavatone z...@mac.com wrote: DownloadOperation.h @interface DownloadOperation : NSOperation - (id)initWithURL:(NSURL*)url; @property (nonatomic, readonly) NSError *error; DownloadOperation.m #import DownloadOperation.h @interface DownloadOperation ()

Re: Curious about a property being declared in the .h and the .m file for iOS

2013-07-15 Thread Ken Thomases
On Jul 15, 2013, at 1:31 PM, Alex Zavatone wrote: I'm looking at the wonderful examples here: http://www.objc.io/issue-2/common-background-practices.html And the particular file from the Asynchronous Networking section here: https://github.com/objcio/issue-2-background-networking

Re: Curious about a property being declared in the .h and the .m file for iOS

2013-07-15 Thread Uli Kusterer
On Jul 15, 2013, at 8:42 PM, Alex Zavatone z...@mac.com wrote: On Jul 15, 2013, at 2:38 PM, Uli Kusterer wrote: On Jul 15, 2013, at 8:31 PM, Alex Zavatone z...@mac.com wrote: DownloadOperation.h @interface DownloadOperation : NSOperation - (id)initWithURL:(NSURL*)url; @property

Re: Converting RTFD to Word with embedded images

2013-07-15 Thread Buddy Kurz
I have no problem with the RTFD format. The document is a bundle containing TXT.rtf and any attachment files. The attachments are referenced in the rtf file with {\NeXTGraphic …} tags. I am creating the documents I am trying to convert by starting with RTF and adding the graphics. I was trying

Re: Curious about a property being declared in the .h and the .m file for iOS

2013-07-15 Thread Alex Zavatone
On Jul 15, 2013, at 2:38 PM, Uli Kusterer wrote: On Jul 15, 2013, at 8:31 PM, Alex Zavatone z...@mac.com wrote: DownloadOperation.h @interface DownloadOperation : NSOperation - (id)initWithURL:(NSURL*)url; @property (nonatomic, readonly) NSError *error; DownloadOperation.m #import

Re: Curious about a property being declared in the .h and the .m file for iOS

2013-07-15 Thread Alex Zavatone
On Jul 15, 2013, at 2:46 PM, Uli Kusterer wrote: On Jul 15, 2013, at 8:42 PM, Alex Zavatone z...@mac.com wrote: On Jul 15, 2013, at 2:38 PM, Uli Kusterer wrote: On Jul 15, 2013, at 8:31 PM, Alex Zavatone z...@mac.com wrote: DownloadOperation.h @interface DownloadOperation :

Re: Converting RTFD to Word with embedded images

2013-07-15 Thread Scott Ribe
On Jul 15, 2013, at 12:41 PM, Buddy Kurz wrote: I was trying to avoid learning about the insides of a Word document. Good move. Doing that would probably take the rest of your life. Seriously. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice

Re: Converting RTFD to Word with embedded images

2013-07-15 Thread Buddy Kurz
We were all put on this Earth to accomplish a certain number of things during our lifetimes and right now I am so far behind I am never going to die. ;-) On Jul 15, 2013, at 12:28 PM, Scott Ribe wrote: On Jul 15, 2013, at 12:41 PM, Buddy Kurz wrote: I was trying to avoid learning about the

Unrecognized selector -[UIFont fontName]?

2013-07-15 Thread Rick Mann
Are a UIFont and CTFont the same thing? Seems like it, in that my UILabel's default font property contains a CTFont. But if I try to access the fontName, I get an exception. For this code: { [self setFont: self.someUILabel.font]; } - (void) setFont: (UIFont*) inFont {

Re: Unrecognized selector -[UIFont fontName]?

2013-07-15 Thread Nick Zitzmann
On Jul 15, 2013, at 6:58 PM, Rick Mann rm...@latencyzero.com wrote: Are a UIFont and CTFont the same thing? Seems like it, in that my UILabel's default font property contains a CTFont. But if I try to access the fontName, I get an exception. While the documentation does state that NSFont

Re: Unrecognized selector -[UIFont fontName]?

2013-07-15 Thread Rick Mann
Nevertheless, the default object inside UILabel.font seems to be a CTFont, so I'm very puzzled. On Jul 15, 2013, at 18:41 , Nick Zitzmann n...@chronosnet.com wrote: On Jul 15, 2013, at 6:58 PM, Rick Mann rm...@latencyzero.com wrote: Are a UIFont and CTFont the same thing? Seems like it,

Re: Problem saving document with my doc icon

2013-07-15 Thread Peter Teeson
On 2013-07-13, at 3:43 PM, Peter Teeson wrote: Thanks for helping me. I dug out the docs you recommended and will learn. Read them all and looked at example plist in TextEdit. I don't want any other app to read or edit my format. So have not exported the UTI. Still cannot get it to work. And the

Re: Problem saving document with my doc icon

2013-07-15 Thread Kyle Sluder
On Jul 15, 2013, at 7:14 PM, Peter Teeson ptee...@icloud.com wrote: On 2013-07-13, at 3:43 PM, Peter Teeson wrote: Thanks for helping me. I dug out the docs you recommended and will learn. Read them all and looked at example plist in TextEdit. I don't want any other app to read or edit my