NSData & Mime Types...

2011-08-19 Thread Kevin Muldoon
e I'm using with EDMessage. NSString *text = @"Kevin Muldoon;Company;1-267-363-7401\r##\rMy fax cover letter!\r##\r"; NSData *documentData =[NSData dataWithContentsOfFile:@"/Users/kevin/ Documents/example.pdf"]; NSMutableArray *attachmentList = [NSMutabl

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

LSUIElement making custom windows non-visible.

2011-03-17 Thread Kevin Muldoon
Writing a small app which completes a task, displays info in a custom semi-transparent NSPanel (based on http://mattgemmell.com/2006/03/12/hudwindow) and, after a few seconds, the NSPanel fades away and the program terminates. Works great but looking to get a more GROWL-like behavior by hav

Aliases with NDAlias not appearing where I tell them to be.

2011-04-27 Thread Kevin Muldoon
I hope some of you NDAlias users can lend a hand. Everything in the code looks right and everything in the Console looks right but instead of creating an alias on the Desktop, the alias is created next to the compiled program in the xcode project folder. #import #import "Alias.h" int m

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-27 Thread Kevin Muldoon
understood easily. On Apr 27, 2011, at 3:09 PM, Quincey Morris wrote: On Apr 27, 2011, at 11:40, Kevin Muldoon wrote: NSString *aliasName = @"ANewAliasTo_myFile.png"; ... 2011-04-27 14:32:46.263 NDAliasesURLProject[3514:10b] And pla

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-27 Thread Kevin Muldoon
On Apr 27, 2011, at 3:14 PM, Fritz Anderson wrote: Also — though probably you're just doing it for the example — I don't recommend finding standard directories by concatenating literal strings. Pass the constant NSDesktopDirectory to NSSearchPathForDirectoriesInDomains(). You mean like

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-27 Thread Kevin Muldoon
gt;> method at all, and (even if it did) ... >> >> It actually does, as I just found out looking at Nathan Day's homepage: >> http://homepage.mac.com/nathan_day/pages/source.xml > > But don't use that code. The newest is here: > <https://github.com/na

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-28 Thread Kevin Muldoon
the rant! I very much appreciate a historical perspective on things. I'll keep banging away it when time permits. On Thu, Apr 28, 2011 at 9:54 AM, Sean McBride wrote: > On Wed, 27 Apr 2011 18:17:21 -0400, Kevin Muldoon said: > > >Alias file! > > I've not used NDAli

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-29 Thread Kevin Muldoon
th to the alias much as is done with the path to the file it points to [ kDirOfTestProject stringByAppendingPathComponent:kTestFileName]. On the other hand, since I appear to be the only person in the world who was confused, please take that suggestion with a 20lb grain of salt. Alright. Back to the salt mines. On Thu, Apr 28,

EDMessage, Symlinks & zip files

2011-06-16 Thread Kevin Muldoon
works have this non-zipping, symlinking behavior? Kevin Muldoon e: caoimgh...@gmail.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

Retrieve NSTable DataSource from AppController

2011-06-18 Thread Kevin Muldoon
ple_ref/doc/uid/20000117-BBCBHIJJ Kevin Muldoon e: caoimgh...@gmail.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.

Reading Adobe Photoshop header, Obj-C

2011-06-28 Thread Kevin Muldoon
Standard Input[65929:10b] Raw string is '' (length 2) 2011-06-28 09:14:31.460 Read Standard Input[65929:10b] Raw string is '' (length 6) Kevin Muldoon e: caoimgh...@gmail.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pl

Re: Reading Adobe Photoshop header, Obj-C

2011-06-28 Thread Kevin Muldoon
Hey Jens, I suppose the trouble here is that I'm familiar with Objective-C code and not so familiar with its parent, C. On Jun 28, 2011, at 1:00 PM, Jens Alfke wrote: On Jun 28, 2011, at 6:23 AM, Kevin Muldoon wrote: As you can see from the output, the 'version' &am

Re: Reading Adobe Photoshop header, Obj-C

2011-06-28 Thread Kevin Muldoon
No problem at all. I'll pick up Kernighan & Ritchie. Thanks for reply. On Jun 28, 2011, at 1:17 PM, Jens Alfke wrote: On Jun 28, 2011, at 10:11 AM, Kevin Muldoon wrote: I suppose the trouble here is that I'm familiar with Objective-C code and not so familiar with its par

Loading Nibs which are self-ref

2011-07-06 Thread Kevin Muldoon
and things aren't working quite as expected. Given all the changes in xCode/Cocoa in the last 2 years, I'm wondering if I'm looking at antiquated techniques and need to be looking elsewhere for handling multiple windows. Kevin Muldoon e: caoimgh...@gmail.com _

Re: Loading Nibs which are self-ref

2011-07-07 Thread Kevin Muldoon
ke to point me, I'll happily check it out. On Wed, Jul 6, 2011 at 9:11 PM, Wim Lewis wrote: > > On 6 Jul 2011, at 2:43 PM, Kevin Muldoon wrote: > > I'm seeking to do a copyObject class that has it's own progress window. > So, I'm doing my research and I see a te

Re: Loading Nibs which are self-ref

2011-07-07 Thread Kevin Muldoon
on { secondWindow = [[SecondWindow alloc] init]; [secondWindow window]; // this activates the window. Documentation says it should and it does. // I placed a 3 second NSTimer here just to be sure it wasn't a timing issue. [secondWindow close]; }

Re: Loading Nibs which are self-ref

2011-07-07 Thread Kevin Muldoon
dWindow showWindow:secondWindow]; [secondWindow setStringValueOfMyTextField:@"Hello! I am SecondWindow! I am very glad to meet you."]; Thanks for the assistance. I'm looking forward to getting to the part which started me doing this part. On Jul 7, 2011, at 12:17 PM, Jens Alfke

Re: Loading Nibs which are self-ref

2011-07-07 Thread Kevin Muldoon
On Jul 7, 2011, at 5:36 PM, Jens Alfke wrote: > > On Jul 7, 2011, at 12:45 PM, Kevin Muldoon wrote: > >> Can I (or should I) hook up File's Owner as I would a subclass of >> NSWindowController? Thereby skipping creating a new object->subclassing as >> Second

Re: Loading Nibs which are self-ref

2011-07-07 Thread Kevin Muldoon
On Jul 7, 2011, at 5:36 PM, Jens Alfke wrote: > > On Jul 7, 2011, at 12:45 PM, Kevin Muldoon wrote: > >> Can I (or should I) hook up File's Owner as I would a subclass of >> NSWindowController? Thereby skipping creating a new object->subclassing as >> SecondWi

Adding Spotlight comment data to folder/file

2011-07-11 Thread Kevin Muldoon
Would like to get/set Spotlight comments into directories and files. I thought this would have been the easy part. Kevin Muldoon e: caoimgh...@gmail.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Adding Spotlight comment data to folder/file

2011-07-11 Thread Kevin Muldoon
Oh my dear lord above. I think I'll one line it with a scripting bridge call. If it works. On Jul 11, 2011, at 7:57 PM, Wim Lewis wrote: > > On 11 Jul 2011, at 12:05 PM, Kevin Muldoon wrote: >> Would like to get/set Spotlight comments into directories and files. I >>

Re: Adding Spotlight comment data to folder/file

2011-07-11 Thread Kevin Muldoon
shocked such an trivial task in a scripting language requires such heavy lifting in Obj-C (or more accurately, C). On Jul 11, 2011, at 8:17 PM, Kyle Sluder wrote: > On Mon, Jul 11, 2011 at 5:07 PM, Kevin Muldoon wrote: >> Oh my dear lord above. I think I'll one line it with a

Re: Adding Spotlight comment data to folder/file

2011-07-12 Thread Kevin Muldoon
Of course, I'm not writing a file format but simply creating folders and moving files. Very enlightening stuff. Thanks for weighing in on the subject. Sent from my iPhone On Jul 11, 2011, at 10:51 PM, Kyle Sluder wrote: > On Mon, Jul 11, 2011 at 6:31 PM, Kevin Muldoon wrote: >>

Re: Cocoaheads?

2011-07-13 Thread Kevin Muldoon
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/caoimghgin%40g

Memory management and returned values from methods...

2011-07-15 Thread Kevin Muldoon
id)initWithString {/**/}; - (void)doAnInterestingMethod {/**/}; - (NSString *)makeAMemoryLeakAndDriveMeCrazy { //do interesting things... return [result autorelease]; } @end Kevin Muldoon e: caoimgh...@gmail.com ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: Memory management and returned values from methods...

2011-07-15 Thread Kevin Muldoon
You make a very compelling point. On Jul 15, 2011, at 4:36 PM, Scott Ribe wrote: > On Jul 15, 2011, at 1:38 PM, Kevin Muldoon wrote: > >> However, there must be a better way than giving up control of releasing my >> objects to NSAutoreleasePool. > > How is this gi

Re: Does anyone else dislike Xcode 4?

2011-07-24 Thread Kevin Muldoon
Just launched xCode 4 and I'm quite freaked out. Where did that lovely drag/drop of IB elements go? Help!? Sent from my iPhone On Jul 24, 2011, at 2:07 PM, Alex Kac wrote: > There are a lot of people who don't care for Xcode 4 for a variety of > reasons: its different, its a one window interf

Re: ARC Release too soon

2013-03-16 Thread Kevin Muldoon
I'd think adding the WindowController to a @property (strong, nonatomic) NSArray *array; would keep those objects alive. Most often, I would simply add each WindowController (or in my case, ViewController) one-at-a-time in the .h. I simply feel it's clearer to see. @property (strong, nonatomic)

Re: If Statements In Objective C For IOS Development

2013-06-15 Thread Kevin Muldoon
I may not be reading this right, but it looks like you're doing math calc on the objects, rather than the values within the objects. See if this works for you… - (IBAction)nextButtonAction:(id)sender { int textFieldOneTextAsInteger = [self.textFieldOne.text integerValue]; int textFi

Re: IB autolayout is impossible

2013-08-19 Thread Kevin Muldoon
For small elements, I have to agree. Programmatically creating NSLayoutConstraints is the only way to go, IMHO. Sent from my iPhone On Aug 19, 2013, at 7:49 PM, Rick Mann wrote: > > On Aug 19, 2013, at 16:48 , dangerwillrobinsondan...@gmail.com wrote: > >> In general in 4.x add your constra

Re: Still can't get autolayout to work the way I want

2013-09-19 Thread Kevin Muldoon
I love the power of auto-layout, but I'll be damned if I can make it behave when working on the GUI .xib file. I've taken to using auto-layout without .xib, building the UI elements in the viewController.m and attaching NSLayoutContraints manually. It's a bit of a pain, but if the layout is com

Re: Still can't get autolayout to work the way I want

2013-09-19 Thread Kevin Muldoon
raints... http://ioscreator.com/auto-layout-in-ios-6-adding-constraints-through-code/ On Sep 19, 2013, at 6:31 PM, Rick Mann wrote: > > On Sep 19, 2013, at 15:29 , Kevin Muldoon wrote: > >> I love the power of auto-layout, but I'll be damned if I can make it behave >>

Updating provisioning profiles xCode 5

2013-09-27 Thread Kevin Muldoon
Used to be I could manage my development provisioning profiles in the Organizer. Or I could update development profile in Apple Portal with new devices, download, double-click and viola! Neither seems to be the case now. Has this moved or have I gone blind? ___

Re: Stale xib files

2013-11-16 Thread Kevin Muldoon
I've experienced this as well, switching from xib to code. As far as I know, a clean install is only answer. Sent from my iPhone > On Nov 16, 2013, at 12:26 PM, Koen van der Drift > wrote: > > I'm in the process of removing some xibs, and construct my views in the > ViewController. As it tu

Re: Stale xib files

2013-11-16 Thread Kevin Muldoon
Nice!!! Sent from my iPhone > On Nov 16, 2013, at 4:34 PM, Koen van der Drift > wrote: > > I found a solution (thanks to SO). I moved the view creating code from > viewDidLoad to loadView. And call [super loadView] first. > > - Koen. > > >> On Nov 16,

Re: Stale xib files

2013-11-17 Thread Kevin Muldoon
However, isn't the process of updating apps in appstore identical to an Ad-Hoc distro? For instance, I've seen this same issue when distributing apps via TestFlight or even my own server. On Nov 17, 2013, at 9:06 AM, Koen van der Drift wrote: > > On Nov 16, 2013, at 7:33 PM, Roland King wro

Re: Stale xib files

2013-11-17 Thread Kevin Muldoon
That would be a huge relief. Thanks Roland! On Nov 17, 2013, at 9:50 AM, Roland King wrote: > No I'm not sure that it is. Appstore updates really do blow things away and > start over. I'm not sure that anything less than that does that. > > On 17 Nov, 2013, at 10:33 pm

Re: Does UIAutomation testing even work?

2014-01-24 Thread Kevin Muldoon
I wish I could say I have had success, but it's far too early. Looking forward to replies. If it works, it'll take pressure off my beta-testers and allow me to sleep at night after a refactor. On Jan 23, 2014, at 5:50 PM, Rick Mann wrote: > I'm logging the element tree of my app. I can see my

Re: Image without profile gets an sRGB profile on Mavericks

2014-03-23 Thread Kevin Muldoon
As Sandy says, its not a matter of right/wrong. Simply expected vs. unexpected. Sure, if I save an image with a profile and immediately ask what profile the image is tagged with, I would expect the result of nil, not sRGB. However, there is a certain brilliance to having all nil profiles defau

Re: Random crashes

2014-04-01 Thread Kevin Muldoon
Perhaps do an NSLog on the [NSWindow becomeKeyWindow] / [NSWindow updateWindows] and see if an NSLog on NSNotification willEnterForeground fires before either of those methods. If so, then you have a good chance of closing down whatever SpriteKit is doing when your app is going to background an