Re: Strange NSFileManager file replacement issue

2011-08-19 Thread Ken Thomases
On Aug 19, 2011, at 12:43 AM, Ken Thomases wrote: On Aug 19, 2011, at 12:38 AM, Ken Thomases wrote: Although it is easy to interpret a temporary directory as provided by the OS being compatible with NSTemporaryDirectory(), I suspect it really means a directory returned by

Re: NSCache objects not being collected under GC?

2011-08-19 Thread jonat...@mugginsoft.com
On 19 Aug 2011, at 03:26, Nick Zitzmann wrote: Short version: Have any of you ever used NSCache in a GC-enabled app? If so, then how did you get the garbage collector to collect them? Long version: I have a framework that is used in a traditional retain-release app and a different

SKPaymentTransaction has no receiptData property for Mac In App Purchase

2011-08-19 Thread XiaoGang Li
Hello List, I have a question about the Mac In App Purchase. After reading the In App Purchase Programming Guide and also other reference document via Google, I found this guide is mainly focus on the iOS platform, actually, no one can tell me what’s the difference of the StoreKit.framework on

Re: Noob question about .a files

2011-08-19 Thread Eric E. Dolecki
Okay - most of the warnings are for .o files some for .a files: *Apple Mach-O Linker Warning* CPU_SUBTYPE_ARM_ALL subtype is deprecated I also see a bunch of *Uncategorized* (doesn't contain architecture information for armv6) Since this thing compiles are runs alright, I won't worry too much.

NSData Mime Types...

2011-08-19 Thread Kevin Muldoon
I've developed an application using EDMessage Frameworks which sends emails with attached PDF to a OSX fax server (running 4-Sight FAX v 7.x). The fax server converts the attached PDF into a 1-bit tiff and sends it to a fax number specified in the body of the email. This email w/attachment

Dug a hole with NSCGSImageRep...

2011-08-19 Thread Graham Cox
Due to a bug in my code, we shipped an app that unintentionally archives an NSImage obtained from the Picture Taker. I can fix the bug alright, but I'm wondering if I can dig myself out of the hole we're in in some way so that users can rescue these archives. During dearchiving, I first get a

Re: Specify valid values for a Core Data attribute

2011-08-19 Thread Martin Hewitson
Hi Brian, I've normally solved this using an integer for the value and enumerate that to stand for different states of the bug. I'm not sure if there's a clever way to use an enum in conjunction with core data, so it may become a headache to 'remember' what each value stands for, but if you

Re: Strange NSFileManager file replacement issue

2011-08-19 Thread Sixten Otto
On Thu, Aug 18, 2011 at 10:14 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: a. What version of iOS did this fail on? The 4.3 simulator (running on Snow Leopard, Xcode 4.0.2). b. Can you assert that the receiver of the 'replace…' method is not nil? (If it was nil, the

Re: Strange NSFileManager file replacement issue

2011-08-19 Thread Sixten Otto
On Thu, Aug 18, 2011 at 10:38 PM, Ken Thomases k...@codeweavers.com wrote: My thinking is that -replaceItemAtURL:... is a wrapper around exchangedata() or FSExchangeObjects(). Those functions, and the general operation that they perform, require that the files to be exchanged be on the same

Scripting Bridge header file problem

2011-08-19 Thread Leo
Hi all, I'm trying to use Scripting Bridge to send AppleScript to InDesign CS5.5. I created the header file from scripting definitions... It's a huge file - 10.2 MB. Added it to the project. Now the project won't compile because the InDesign header file contains tons of duplicate

Re: Noob question about .a files

2011-08-19 Thread Kyle Sluder
On Aug 19, 2011, at 5:46 AM, Eric E. Dolecki edole...@gmail.com wrote: Okay - most of the warnings are for .o files some for .a files: *Apple Mach-O Linker Warning* CPU_SUBTYPE_ARM_ALL subtype is deprecated I also see a bunch of *Uncategorized* (doesn't contain architecture information

Re: Noob question about .a files

2011-08-19 Thread Eric E. Dolecki
Okay - I'll do that. Checking the debug and release architectures for the Project I see $(ARCHS_STANDARD_32_BIT) listed with Standard (armv7). Thanks for pointing this out to me. - Eric On Fri, Aug 19, 2011 at 10:47 AM, Kyle Sluder kyle.slu...@gmail.com wrote: On Aug 19, 2011, at 5:46 AM,

Re: Transparency of textured controls

2011-08-19 Thread Andreas Mayer
Am 13.08.2011 um 18:41 schrieb Leo: For some reason, the textured controls are now transparent (e.g., Textured Rounded and Textured Square of NSSegmentedControl etc.) From the AppKit Release Notes: -- Button Appearance Changes (New since early 2011 seed) As part of an ongoing

Re: Strange NSFileManager file replacement issue

2011-08-19 Thread Sixten Otto
On Thu, Aug 18, 2011 at 10:14 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: c. Can you show us the actual line of code that does the replacement? Here's the original code (plus the addition of an assert on the file manager). The property self.filePath has the path to the current

Re: Specify valid values for a Core Data attribute

2011-08-19 Thread Sean McBride
On Fri, 19 Aug 2011 15:40:55 +0200, Brian Norh said: One of the problems with this approach is that it doesn't work if the application is localized it into a different language. Then the word which indicates the state is stored differently depending on the current language. I need to save the

Re: NSData Mime Types...

2011-08-19 Thread Jens Alfke
On Aug 19, 2011, at 5:51 AM, Kevin Muldoon wrote: I suspect my Content-Type needs to be specified as Content-Type: application/pdf rather than Content-Type: application/octet-stream; What methods/techniques are available in NSData to set Mime-Types and other such things? None. NSData is

Re: Lion - CopiesOnScroll Bug with table view

2011-08-19 Thread Raleigh Ledet
A) Does the scrollview overlap your side view by a pixel or more? B) What is the frame of the scrollview? Is it integral? -raleigh On Aug 18, 2011, at 5:23 PM, Seth Willits wrote: I have an NSTableView in a scrollview, and on Lion it's now smearing all of the drawing when scrolling:

Re: NSData Mime Types...

2011-08-19 Thread Kevin Muldoon
Alright. Makes sense. Thanks for replying everyone. On Aug 19, 2011, at 12:47 PM, Jens Alfke wrote: On Aug 19, 2011, at 5:51 AM, Kevin Muldoon wrote: I suspect my Content-Type needs to be specified as Content-Type: application/pdf rather than Content-Type: application/octet-stream; What

Re: Printing [SOLVED]

2011-08-19 Thread koko
The bounds of my print view did not contain the rect returned in rectForPage. -koko On Aug 18, 2011, at 7:05 PM, Graham Cox wrote: shrugs Show your code. How are we supposed to debug something we can't even see? perhaps -rectForPage: is returning an empty rect? Perhaps you're not

Looking for sample code to support NSRect resize in a view

2011-08-19 Thread Jeff Schriebman
Hello, In a new project I am developing in Lion I display a number of items in a standard view. Each of these items is bounded by a NSRect. I would like to be able to click on an item, display the rectangle around it and then click on the right, left, top or bottom of the rectangle and drag it

Re: Lion - CopiesOnScroll Bug with table view

2011-08-19 Thread Seth Willits
Sweet. Thanks. It turned out to be non-integral frame of the scrollview's content view. Oddly, the scrollview itself had an integral frame, and it's the scrollview's frame that I set to be non-integral accidentally, through my custom split view. The non-integral numbers comes from the mouse

Re: NSCache objects not being collected under GC?

2011-08-19 Thread Nick Zitzmann
On Aug 19, 2011, at 2:40 AM, jonat...@mugginsoft.com wrote: I don't use NSCache but I have used instruments to effectively debug GC memory collection problems. The described rooting behaviour of NSCache sounds peculiar to me. I just reproduced the problem in another project, so this is

Re: Transparency of textured controls

2011-08-19 Thread Leo
On 8/19/11 11:00:44 AM, Andreas Mayer wrote: Am 13.08.2011 um 18:41 schrieb Leo: For some reason, the textured controls are now transparent (e.g., Textured Rounded and Textured Square of NSSegmentedControl etc.) From the AppKit Release Notes: -- Button Appearance Changes (New since

Re: Looking for sample code to support NSRect resize in a view

2011-08-19 Thread Mike Abdullah
There's nothing built into cocoa for this. I wrote KSSelectionBorder to implement a decent chunk of the functionality: https://github.com/karelia/KSSelectionBorder Sent from my iPad On 19 Aug 2011, at 07:00 PM, Jeff Schriebman j...@leapfrogproductions.com wrote: Hello, In a new project I

Re: Strange NSFileManager file replacement issue

2011-08-19 Thread Steve Christensen
On Aug 19, 2011, at 7:17 AM, Sixten Otto wrote: On Thu, Aug 18, 2011 at 10:38 PM, Ken Thomases k...@codeweavers.com wrote: Those functions, and the general operation that they perform, require that the files to be exchanged be on the same file system. If true, that certainly makes that

Crash Reporter for Lion

2011-08-19 Thread Wilker
Hi Guys, I'm trying to setup a crash reporter on my Mac Application. I tried the UKCrashReporter, but it seems to not be working here (compiling with 10.7 target, 64 bits). You have any recommendations on what I could use for that? Thanks, --- Wilker Lúcio http://about.me/wilkerlucio/bio

iPhone app behaves differently on every other launch

2011-08-19 Thread Rick Mann
One of my colleagues at work wrote a small test app to work on a bit of custom UI. It's a simple app based on the View-based app stationery. She has run into a vexing problem: on one run of the app, it works fine. On the second, her view controller's view does not appear. The next run, all is

Re: Looking for sample code to support NSRect resize in a view

2011-08-19 Thread Jeff Schriebman
Thanks for the pointer Mike. On Aug 19, 2011, at 1:00 PM, Mike Abdullah wrote: There's nothing built into cocoa for this. I wrote KSSelectionBorder to implement a decent chunk of the functionality: https://github.com/karelia/KSSelectionBorder On 19 Aug 2011, at 07:00 PM, Jeff Schriebman

Re: Crash Reporter for Lion

2011-08-19 Thread Sean McBride
On Fri, 19 Aug 2011 17:18:14 -0300, Wilker said: I'm trying to setup a crash reporter on my Mac Application. I tried the UKCrashReporter, but it seems to not be working here (compiling with 10.7 target, 64 bits). You have any recommendations on what I could use for that? This is working well

Re: Lion - CopiesOnScroll Bug with table view

2011-08-19 Thread Raleigh Ledet
You never could assume mouse coordinates were always integral. Tablets for example output non-integral mouse coordinates and have since 10.2. In Lion, hi res mice (such as Apple's trackpads and Magic Mice) will output non-integral mouse coordinates as well. -raleigh On Aug 19, 2011, at 12:14

Re: Lion - CopiesOnScroll Bug with table view

2011-08-19 Thread Kyle Sluder
On Fri, Aug 19, 2011 at 1:33 PM, Raleigh Ledet le...@apple.com wrote: You never could assume mouse coordinates were always integral. Tablets for example output non-integral mouse coordinates and have since 10.2. In Lion, hi res mice (such as Apple's trackpads and Magic Mice) will output

Re: Lion - CopiesOnScroll Bug with table view

2011-08-19 Thread Seth Willits
On Aug 19, 2011, at 1:40 PM, Kyle Sluder wrote: On Fri, Aug 19, 2011 at 1:33 PM, Raleigh Ledet le...@apple.com wrote: You never could assume mouse coordinates were always integral. Tablets for example output non-integral mouse coordinates and have since 10.2. In Lion, hi res mice (such as

How do you create a QTMovieView programmatically?

2011-08-19 Thread Charles Srstka
Looking through the docs for QTMovieView, it seems that not only is its only initializer, -initWithFrame: deprecated, but according to the docs it’s not even available past OS X 10.5. Surely there must be a way to initialize a QTMovieView in code, right? Or is there some other class we’re

Re: How do you create a QTMovieView programmatically?

2011-08-19 Thread Kyle Sluder
On Fri, Aug 19, 2011 at 1:54 PM, Charles Srstka cocoa...@charlessoft.com wrote: Looking through the docs for QTMovieView, it seems that not only is its only initializer, -initWithFrame: deprecated, but according to the docs it’s not even available past OS X 10.5. Surely there must be a way to

Re: How do you create a QTMovieView programmatically?

2011-08-19 Thread Charles Srstka
On Aug 19, 2011, at 4:00 PM, Kyle Sluder wrote: On Fri, Aug 19, 2011 at 1:54 PM, Charles Srstka cocoa...@charlessoft.com wrote: Looking through the docs for QTMovieView, it seems that not only is its only initializer, -initWithFrame: deprecated, but according to the docs it’s not even

Re: Strange NSFileManager file replacement issue

2011-08-19 Thread Sixten Otto
On Fri, Aug 19, 2011 at 1:14 PM, Steve Christensen puns...@mac.com wrote: Is there any reason why you can't put the downloaded file in your app's private cache directory (.../appdir/Library/Caches), i.e., what gets returned by NSSearchPathForDirectoriesInDomains(NSCachesDirectory,

Re: Strange NSFileManager file replacement issue

2011-08-19 Thread Ken Thomases
On Aug 19, 2011, at 10:29 AM, Sixten Otto wrote: This morning, I replaced the code between the *** 1 and *** 2 with the following, which still failed in exactly the same way. It does get create a replacement directory and return it, my temp file moves into that directory without issue, but

[SOLVED] iPhone app behaves differently on every other launch

2011-08-19 Thread Rick Mann
Here's an interesting one for ya... My colleague had two NIB files with the same name, but one lacked all the content of the other. Xcode 3.2.6 would alternate which was included in the bundle on each build/run (running without building resulted in consistent behavior). Hence, exactly every

Re: How do you create a QTMovieView programmatically?

2011-08-19 Thread Seth Willits
On Aug 19, 2011, at 2:19 PM, Charles Srstka wrote: Looking through the docs for QTMovieView, it seems that not only is its only initializer, -initWithFrame: deprecated, but according to the docs it’s not even available past OS X 10.5. Surely there must be a way to initialize a QTMovieView

Re: How do you create a QTMovieView programmatically?

2011-08-19 Thread Stephane Sudre
On Fri, Aug 19, 2011 at 11:51 PM, Seth Willits sli...@araelium.com wrote: On Aug 19, 2011, at 2:19 PM, Charles Srstka wrote: Looking through the docs for QTMovieView, it seems that not only is its only initializer, -initWithFrame: deprecated, but according to the docs it’s not even

Re: iPhone app behaves differently on every other launch

2011-08-19 Thread William Squires
I would check 2 things: 1) Is there anything in the view controller that's maintaining a persistent boolean state that toggles each time its awakeFromNib is called? 2) Does it do the same thing when you deploy to an actual iPad? On Aug 19, 2011, at 3:20 PM, Rick Mann wrote: One of my

Re: iPhone app behaves differently on every other launch

2011-08-19 Thread Rick Mann
Actually we found the culprit. I posted the solution to the list. On Aug 19, 2011, at 16:14 , William Squires wrote: I would check 2 things: 1) Is there anything in the view controller that's maintaining a persistent boolean state that toggles each time its awakeFromNib is called? 2) Does

Help! Gesture getting canceled

2011-08-19 Thread Rick Mann
I've implemented a drag-and-drop feature in a complex UITableView custom view. Basically, you can drag from one row onto another (rather than between rows). Now, this is complicated, but mostly works. Now, I've implemented autoscroll for the table by putting a long press gesture recognizer on