Re: How to Support in-line attachments in NStextView

2011-09-15 Thread jonat...@mugginsoft.com
On 15 Sep 2011, at 06:53, Sandeep Mohan Bhandarkar wrote: > Hi All, > > I have a requirement where in I need to create a NSTextView that can support > in-line attachments. the feature that I am looking for can be summed up in > the following points > > 1) Ability to drag and drop files images

sender is nil in action method from NSPopupButtonCell in an NSTextFieldCell

2011-09-15 Thread Peter
I have a header cell for an NSTableView based on NSTextFieldCell containing an NSPopupButtonCell. I am setting the NSPopupButtonCell up programmatically. I set an action method for the NSPopupButtonCell in the standard fashion: [self.popupCell setAction:@selector(headerCellPopupChanged:)]; This

Re: How to Support in-line attachments in NStextView

2011-09-15 Thread Martin Hewitson
Here's a subclass of NSTextView I wrote quite a while ago to handle linking files. Not sure if it all worked in the end, but it should be enough to get you started. Martin FileLinkTextView.h Description: Binary data FileLinkTextView.m Description: Binary data On Sep 15, 2011, at 10:15 AM

SDK 10.5 on XCode 4.1

2011-09-15 Thread Leonardo
Hi, I need to build using SDK 10.5. I work on Lion and XCode 4.1 Build 4B110. Is a way to do that? Actually I get a lot of error, and I can't compile. For example I get the error: /Developer/SDKs/MacOSX10.5.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory But the file exi

Predicates not fetching.

2011-09-15 Thread James Cicenia
Hello - I first read an xml file upon startup into a Core Data sqlite. I then fetch all records... they are there. I then do a simple predicate @"name == %@", nameString If find nothing. And it is there. Now if I open the created SQLITE database via a client tool, It also turns up zero records.

Re: SDK 10.5 on XCode 4.1

2011-09-15 Thread Richard Somers
On Sep 15, 2011, at 8:13 AM, Leonardo wrote: > I need to build using SDK 10.5. I work on Lion and XCode 4.1 If you need the MacOSX10.5.sdk one way to do this is to make a unix hard link to the sdk included with Xcode 3. To make a hard link use the following commands from the Terminal applicatio

Re: SDK 10.5 on XCode 4.1

2011-09-15 Thread Scott Ribe
On Sep 15, 2011, at 10:00 AM, Richard Somers wrote: > If you need the MacOSX10.5.sdk one way to do this is to make a unix hard link > to the sdk included with Xcode 3. To make a hard link use the following > commands from the Terminal application. Minor nit, that's a symlink, not a hard link. O

Re: Sample code using the new document model?

2011-09-15 Thread John C. Randolph
On Aug 26, 2011, at 7:55 PM, Jerry Krinock wrote: > I'm just surprised that, of 733 Sample Code projects available in the Mac Dev > Center, none of them use either of these much-touted but quite complicated > new features. Sample code projects get updated in DTS engineers' spare time, for the

Re: SDK 10.5 on XCode 4.1

2011-09-15 Thread Richard Somers
On Sep 15, 2011, at 10:40 AM, Scott Ribe wrote: > Minor nit, that's a symlink, not a hard link. One important difference is > that a symlink can cross volume boundaries... Correct. Second important difference is symbolic links may refer to directories which this is. --Richard

Re: SDK 10.5 on XCode 4.1

2011-09-15 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9/15/11 10:57 AM, Richard Somers wrote: > On Sep 15, 2011, at 10:40 AM, Scott Ribe wrote: > >> Minor nit, that's a symlink, not a hard link. One important >> difference is that a symlink can cross volume boundaries... > > Correct. Second importan

New Core Data File Wrapper example ?

2011-09-15 Thread Frederic Testuz
In the WWDC 2011 video "Session 315 What's New in Core Data on Mac OS X", there is a line about a new Lion Auto Save example for using File Wrappers coming soon (time 13:54 or page 35 of the pdf version). Well, the WWDC was some weeks ago, did any of you find this example ? Or can you access it

Re: SDK 10.5 on XCode 4.1

2011-09-15 Thread Scott Ribe
On Sep 15, 2011, at 12:14 PM, Conrad Shultz wrote: > ...and I suspect that is what Time Machine does under the hood as well. Yes, it does. Hard links to directories is a pretty non-standard thing, which is why ln does not support it. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevat

Re: SDK 10.5 on XCode 4.1

2011-09-15 Thread Leonardo
Hi, thank you all for your suggestion. I created the Sym link, relaunched XCode but when I compile I still get errors like: /Developer/SDKs/MacOSX10.5.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory But the file exists... I am puzzled. The error comes right from the stda

Re: New Core Data File Wrapper example ?

2011-09-15 Thread John Pannell
Hi Frederic- There is older example code showing how to accomplish this: http://developer.apple.com/library/mac/#samplecode/PersistentDocumentFileWrappers/Introduction/Intro.html I, too, have been hoping for an update that pulls together all of Lion's new document features + Core Data in one pl

Timeout back to login screen

2011-09-15 Thread Shawn Bakhtiar
Hi All, I have multiple users using the same iTouch device during our inventory, shipping and receiving process. They log in, take inventory, ship stuff, receive stuff, than leave it on the counter. They have requested that the unit time out after 5 min back to the log in screen. I have done s

Re: Timeout back to login screen

2011-09-15 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9/15/11 12:40 PM, Shawn Bakhtiar wrote: > > Hi All, > > I have multiple users using the same iTouch device during our > inventory, shipping and receiving process. They log in, take > inventory, ship stuff, receive stuff, than leave it on the > c

Re: No longer use NSLog() in Xcode 4?

2011-09-15 Thread Jerry Krinock
On 2011 Sep 15, at 12:16, Scott Ribe wrote: > Well, if you used __LINE__ in your NSLog statements instead of reading the > cursor position, then perhaps you wouldn't have to read anything in your > script. Yes, except the really nice thing about %%%{PBXSelectionStart}%%% is that it gives me a

Re: No longer use NSLog() in Xcode 4?

2011-09-15 Thread Scott Ribe
On Sep 15, 2011, at 2:34 PM, Jerry Krinock wrote: > Bang. Just do a ⇧⌘F, copy that 13476 to the search field, and in seconds the > problem is staring me in the face. > > __FILE__ would be useful if it didn't print out the whole damned full path. Interesting, never thought of that. I prefer the

Re: No longer use NSLog() in Xcode 4?

2011-09-15 Thread Gerd Knops
On Sep 15, 2011, at 3:55 PM, Scott Ribe wrote: > On Sep 15, 2011, at 2:34 PM, Jerry Krinock wrote: > >> Bang. Just do a ⇧⌘F, copy that 13476 to the search field, and in seconds >> the problem is staring me in the face. >> >> __FILE__ would be useful if it didn't print out the whole damned ful

NSImage initWithPasteboard

2011-09-15 Thread Eugene Rudenko
Hello! I have a JNI method to get image from clipboard. After 5-6 calls a method, I have a hanging method. It hanging at call initWithPasteboard. Although the method canInitWithPasteboard returns true. Objective C method: - NSPasteboard *myPasteboard = [NSPasteboard generalPasteboard]; NSImage *i