NSTableView: Rows from bottom up

2015-08-31 Thread Eric Gorr
Normally when one adds the first row to a NSTableView, it will appear at the top of the view and additional rows will appear below it. Is it possible to have the first row appear at the bottom of the NSTableView and for new rows to appear above it? No doubt this would require some extensive cus

Re: NSTableView: Rows from bottom up

2015-09-01 Thread Eric Gorr
> On Aug 31, 2015, at 10:00 PM, Keary Suska wrote: > > On Aug 31, 2015, at 7:51 PM, Eric Gorr wrote: >> >> Normally when one adds the first row to a NSTableView, it will appear at the >> top of the view and additional rows will appear below it. Is it possible to &

Re: NSTableView: Rows from bottom up

2015-09-03 Thread Eric Gorr
I went ahead and used a DTS ticket and the response I got back from Apple is that there is no supported way to do what I want. So, I am left with something custom or attempting to fake it by determining the number of rows I need to fill the table (when there aren’t enough already) and ordering

Assigning an element of a swift array to a userdata parameter triggers didSet

2015-11-17 Thread Eric Gorr
I created the default Cocoa/Swift app. My AppDelegate class is below. I have hooked the view in the window to the view IBOutlet in the AppDelegate. What I am trying to do is assign a element from an array to the userdata for a tooltip. The code executes and prints 'did set' three times. I would

Re: Assigning an element of a swift array to a userdata parameter triggers didSet

2015-11-18 Thread Eric Gorr
Yes, that all makes sense. So, the question is what can I do about it? The number of tooltips I need is the same number of elements in the array and the number of elements in the array can change over the lifetime of the application. So, it is natural to store the information needed by the toolt

calendar & repeating events api

2016-02-16 Thread Eric Gorr
When setting up a repeating event in Apple’s Calendar application, there is a lot of flexibility. For example, I can specify that an event repeats every month on the 5th Saturday. Of course, not every month has a fifth saturday, so for that month there is no event. What I am wondering is if the

Re: calendar & repeating events api

2016-02-21 Thread Eric Gorr
> On Feb 16, 2016, at 9:52 PM, Greg Parker wrote: > > >> On Feb 16, 2016, at 6:34 PM, Eric Gorr wrote: >> >> When setting up a repeating event in Apple’s Calendar application, there is >> a lot of flexibility. For example, I can specify that an event r

Automatically restore last saved document on application launch

2016-03-10 Thread Eric Gorr
I have a Core Data Document Based OS X application written in swift and using storyboards. Whenever I build and launch the app, instead of automatically opening the last opened document(s), it will create a new document. What I want to be able to do is have the application automatically restore

Re: Automatically restore last saved document on application launch

2016-03-11 Thread Eric Gorr
pDelegate.self theWindow.identifier= "last_saved_window" self.addWindowController( windowController ) } to setup the window for restoration. Does this look correct? > On Mar 11, 2016, at 2:14 AM, Quincey Morris > wrote: > > On

Re: Automatically restore last saved document on application launch

2016-03-12 Thread Eric Gorr
, 2016, at 9:38 PM, Eric Gorr wrote: > > There are still several key details I seem to be missing. > > I have a new commit > > https://github.com/ericgorr/last_saved/commit/ba462a19062fefde68f7e0f4459a0c8293332e9f > > <https://gith

Making Managed Object Context available to array controller in Storyboard scene

2016-03-14 Thread Eric Gorr
I have a core data, document based, storyboard OS X application. There is a test project here: https://github.com/ericgorr/sb_ac_doc which is just the default project Xcode creates with a few modifications. I have a single view controller and the view contains a table view which will eventuall

Re: Making Managed Object Context available to array controller in Storyboard scene

2016-03-15 Thread Eric Gorr
14, 2016, at 8:40 PM, Eric Gorr wrote: > > I have a core data, document based, storyboard OS X application. > > There is a test project here: > > https://github.com/ericgorr/sb_ac_doc > > which is just the default project Xcode creates with a few modifications. > > I

Re: Why would NSViewController loadView fail?

2009-08-31 Thread Eric Gorr
On Aug 28, 2009, at 4:36 PM, Eric Gorr wrote: I am pretty sure I've got my .xib setup correctly, but when I call loadView on my View Controller, my application crashes. Unfortunately, I am not getting any useful information out of the crash. The only thing I appear to have is a

Re: Why would NSViewController loadView fail?

2009-08-31 Thread Eric Gorr
On Aug 31, 2009, at 3:58 PM, Kyle Sluder wrote: On Mon, Aug 31, 2009 at 12:26 PM, Eric Gorr wrote: Building and running it on Snow Leopard causes it to crash horribly. Try reopening/resaving your nib in the latest Interface Builder? Thanks. I did try that, but it didn't help. I

Re: Why would NSViewController loadView fail?

2009-08-31 Thread Eric Gorr
On Aug 31, 2009, at 4:54 PM, Jonathan Hess wrote: On Aug 28, 2009, at 1:36 PM, Eric Gorr wrote: I am pretty sure I've got my .xib setup correctly, but when I call loadView on my View Controller, my application crashes. Unfortunately, I am not getting any useful information out o

Re: Why would NSViewController loadView fail?

2009-08-31 Thread Eric Gorr
On Aug 31, 2009, at 5:06 PM, Corbin Dunn wrote: On Aug 31, 2009, at 1:59 PM, Jonathan Hess wrote: I would try running with zombies. And now that you have SnowLeopard, this should be the first thing you (meaning, the collective of Cocoa programmers out there) should do: In Xcode: Run

Re: Creator Codes in Snow Leopard

2009-09-23 Thread Eric Gorr
On Sep 23, 2009, at 12:37 PM, BJ Homer wrote: On Wed, Sep 23, 2009 at 10:32 AM, Todd Heberlein >wrote: Inside Snow Leopard's UTI: Apple fixes the Creator Code http://www.appleinsider.com/articles/09/09/22/inside_snow_leopards_uti_apple_fixes_the_creator_code.html Some may also find it misl

Re: [OT] Re: Creator Codes in Snow Leopard

2009-09-23 Thread Eric Gorr
On Sep 23, 2009, at 12:55 PM, Alastair Houghton wrote: On 23 Sep 2009, at 17:42, Todd Heberlein wrote: As a result, most of their conclusions are incorrect as well. If you can't set the UTI differently on two files with the same type code and extension, it can't serve as a creator code.

CFBundleGetInfoString & Snow Leopard

2009-09-23 Thread Eric Gorr
With Snow Leopard, the CFBundleGetInfoString string is now obsolete. The string assigned to this key will show up in the Version field in the Get Info window if NSHumanReadableCopyright is not defined. For my application, I set CFBundleGetInfoString to: Major.Minor.Bug (Build #), Cop

Re: [moderator] Re: [OT] Re: Creator Codes in Snow Leopard

2009-09-23 Thread Eric Gorr
place for it. Thanks Scott (normally posts from sc...@cocoadoc.com, but can’t at the moment) On Sep 23, 2009, at 10:14 AM, Eric Gorr wrote: On Sep 23, 2009, at 12:55 PM, Alastair Houghton wrote: On 23 Sep 2009, at 17:42, Todd Heberlein wrote: As a result, most of their conclusions are incorre

Why is scrollbar enabled?

2009-09-28 Thread Eric Gorr
I'm sure there is something trivial that I am missing, While the application is running and not doing anything in particular, I generate the following information about the state of the NSScroller: Content View Frame: {{1, 1}, {445, 594}} Content View Bounds: {{0, 0}, {445, 594}} Scroll Frame

Re: Why is scrollbar enabled? - SOLVED

2009-10-01 Thread Eric Gorr
any suggestions on how this might be better handled, I would be interested. On Sep 28, 2009, at 12:19 PM, Eric Gorr wrote: I'm sure there is something trivial that I am missing, While the application is running and not doing anything in particular, I generate the following informati

Re: Adding 'Help' to your App.

2009-10-13 Thread Eric Gorr
On Oct 13, 2009, at 12:37 PM, Joshua Garnham wrote: Just wondering if there is some documentation on how to add 'help' to your app. I would suggest starting with: http://developer.apple.com/mac/library/documentation/Carbon/Conceptual/ProvidingUserAssitAppleHelp/user_help_intro/user_assistanc

Odd window drag bug

2009-10-20 Thread Eric Gorr
Here is a simple application which reproduces the problem: http://ericgorr.net/cocoadev/WindowDrag.zip After building the application with Xcode 3.2, press the miniaturize button. This will cause the panel to be window shaded. Now, try to drag the window from the right side of the title

NSColor for darker hightlight color

2009-10-21 Thread Eric Gorr
If, in the Appearance settings, I set my highlight color to blue and then select an item in the finder, the blue color used is darker then the color shown in the Appearance Settings. Is there a NSColor method which will return this darker shade to me? Is it alternateSelectedControlTextColor?

Re: NSColor for darker hightlight color

2009-10-21 Thread Eric Gorr
On Oct 21, 2009, at 7:34 PM, Graham Cox wrote: On 22/10/2009, at 9:25 AM, Eric Gorr wrote: If so, then it may not be appropriate for me to use alternateSelectedControlTextColor (for example) - however, neither selectedControlColor nor selectedTextBackgroundColor will return this darker

Developer Color Picker ( was Re: NSColor for darker hightlight color )

2009-10-21 Thread Eric Gorr
On Oct 21, 2009, at 8:00 PM, Kyle Sluder wrote: On Wed, Oct 21, 2009 at 4:51 PM, Eric Gorr wrote: Interesting. I've looked a little, but cannot seem to find this color picker. Anyone know where it can be found? Google for "developer color picker" --> http://www.pani

NSPopUpButton, Bindings & separator items

2009-11-04 Thread Eric Gorr
I found this old message, but there was no answer posted and have the same question... http://lists.apple.com/archives/cocoa-dev/2005/Jan/msg00886.html Is there a way to add separator Items to an NSPopUpButton using bindings? ___ Cocoa-dev maili

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Eric Gorr
Dang. Thank you. Almost certainly going to be marked as a duplicate, but I have filed a bug report - rdar://7364344 On Nov 4, 2009, at 11:41 AM, Mike Abdullah wrote: I found this old message, but there was no answer posted and have the same question... http://lists.apple.com/archives/co

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Eric Gorr
On Nov 4, 2009, at 3:38 PM, Matt Neuburg wrote: On Wed, 4 Nov 2009 11:26:16 -0500, Eric Gorr said: I found this old message, but there was no answer posted and have the same question... http://lists.apple.com/archives/cocoa-dev/2005/Jan/msg00886.html Is there a way to add separator Items

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Eric Gorr
Interesting. Don't suppose you are aware of any sample code which demonstrates how to use this? On Nov 4, 2009, at 4:45 PM, Sean McBride wrote: On 11/4/09 11:26 AM, Eric Gorr said: I found this old message, but there was no answer posted and have the same question...

How do I get Lucida Grande italic into my application?

2009-11-12 Thread Eric Gorr
I need to be able to do this same thing and found this old thread and reply: http://lists.apple.com/archives/Cocoa-dev/2007/Jan/msg00577.html I assume the answer has not changed. Unfortunately, the link

Re: How do I get Lucida Grande italic into my application?

2009-11-12 Thread Eric Gorr
, at 12:39 PM, Eric Gorr wrote: > I need to be able to do this same thing and found this old thread and reply: > > http://lists.apple.com/archives/Cocoa-dev/2007/Jan/msg00577.html > > I assume the answer has not changed. Unfortunately, the link > > > <http

Re: How do I get Lucida Grande italic into my application?

2009-11-12 Thread Eric Gorr
On Nov 12, 2009, at 2:21 PM, Jens Alfke wrote: > > On Nov 12, 2009, at 9:39 AM, Eric Gorr wrote: > >> Unfortunately, the link >> >> <http://trac.webkit.org/projects/webkit/browser/trunk/WebCore/platform/mac/FontMac.mm#L583> >> is no longer valid &

[Q] Expanded tooltips in Cocoa?

2009-11-17 Thread Eric Gorr
In carbon, you could define both default and expanded tooltips for views. I found this old thread: http://lists.apple.com/archives/cocoa-dev/2003/Aug/msg00591.html which indicated that expanded tooltips were not supported in Cocoa. In my hunting through the guides, I believe this is still

Re: [Q] Expanded tooltips in Cocoa?

2009-11-17 Thread Eric Gorr
On Nov 17, 2009, at 2:20 PM, Sean McBride wrote: > On 11/17/09 1:57 PM, Eric Gorr said: > >> In carbon, you could define both default and expanded tooltips for views. >> >> I found this old thread: >> >> http://lists.apple.com/archives/cocoa-dev/2003/Aug/

Re: setToolTip: not working

2009-11-18 Thread Eric Gorr
On Nov 18, 2009, at 7:42 AM, Ben Haller wrote: > On 16-Nov-09, at 12:11 PM, Ben Haller wrote: > >> I'm having difficulty setting tooltips on some views in code. This should >> be a simple matter of calling setToolTip: on the views in question, as far >> as I can tell from the docs, but that i

Re: NSResponder / acceptsFirstResponder

2010-03-13 Thread Eric Gorr
On Mar 12, 2010, at 1:17 PM, David Blanton wrote: > How does one get a views acceptsFirstResponder method called without having > to click on the view? You may be looking for -makeFirstResponder: in the NSWindow class. -acceptsFirstResponder should be called automatically... If not, you'll ne

[MEET] Columbia, MD CocoaHeads - April 13th

2010-04-13 Thread Eric Gorr
The next meeting of Columbiao CocoaHeads will be held on Tuesday, April 13 at 6:30 PM at Nemetschek North America, Inc. Up-to-date agenda & directions are available at: http://cocoaheads.org/us/ColumbiaMaryland/index.html ___ Cocoa-dev mailing list (Co

Windows following the menubar in Cocoa

2010-05-03 Thread Eric Gorr
Using Xcode 3.1.3 (or 2.5), I created a standard Carbon application with a single document window. After running the application, I use the Display System Preferences to move the menubar from one display to another one. The document window for the Carbon application followed the menubar and move

Re: Windows following the menubar in Cocoa

2010-05-05 Thread Eric Gorr
On May 3, 2010, at 6:48 PM, Murat Konar wrote: > > On May 3, 2010, at 3:31 PM, Eric Gorr wrote: > >> Is there a way to configure a Cocoa window so it will follow the menubar to >> another display? > > Is it even a good idea? Probably not. However, there is a

[MEET] CocoaHeads - Columbia, MD - May 11th

2010-05-11 Thread Eric Gorr
The next meeting of Columbiao CocoaHeads will be held on Tuesday, May 11th at 6:30 PM at Nemetschek North America, Inc. Up-to-date agenda & directions are available at: http://cocoaheads.org/us/ColumbiaMaryland/index.html ___ Cocoa-dev mailing list (C

Re: [iPhone] How to create a unique string

2010-05-13 Thread Eric Gorr
On May 13, 2010, at 8:48 AM, Tharindu Madushanka wrote: > Hi, > > I want to generate a unique string every time i push a button. As John P. said, I would going with a UUID. They are, by definition, what you want. ___ Cocoa-dev mailing list (Cocoa-d

Re: [iPhone] How to create a unique string

2010-05-13 Thread Eric Gorr
So long as it is ok for the string to be unique for the network the user is on only. From the docs: The ID includes the host name, process ID, and a time stamp, which ensures that the ID is unique for the network. A UUID (Universally Unique Identifier) is entirely unique. On May 13, 2010, at

Re: [iPhone] How to create a unique string

2010-05-13 Thread Eric Gorr
On May 13, 2010, at 11:52 AM, Louis Gerbarg wrote: > On May 13, 2010, at 11:05 AM, Michael Ash wrote: > >> On Thu, May 13, 2010 at 10:56 AM, Thomas Davie wrote: >>> >>> On 13 May 2010, at 15:33, Eric Gorr wrote: >>> >>>> So long as it is

Re: [iPhone] How to create a unique string

2010-05-13 Thread Eric Gorr
On May 13, 2010, at 12:01 PM, Michael Ash wrote: > On Thu, May 13, 2010 at 11:52 AM, Louis Gerbarg wrote: >> On May 13, 2010, at 11:05 AM, Michael Ash wrote: >> >>> On Thu, May 13, 2010 at 10:56 AM, Thomas Davie wrote: >>>> >>>> On 13 May 2010

Where did the icon come from?

2010-07-16 Thread Eric Gorr
Is there a unix tool to which I can pass a file and have it tell me where the icon for the file is coming from? Thank you.___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Conta

Re: Where did the icon come from?

2010-07-16 Thread Eric Gorr
0, at 5:34 PM, John Joyce wrote: > > On Jul 16, 2010, at 4:28 PM, Eric Gorr wrote: > >> Is there a unix tool to which I can pass a file and have it tell me where >> the icon for the file is coming from? >> >> Thank you.

Re: Where did the icon come from?

2010-07-16 Thread Eric Gorr
On Jul 16, 2010, at 5:36 PM, John Joyce wrote: > On Jul 16, 2010, at 4:28 PM, Eric Gorr wrote: > >> Is there a unix tool to which I can pass a file and have it tell me where >> the icon for the file is coming from? >> >> Thank you.

Re: Where did the icon come from?

2010-07-16 Thread Eric Gorr
On Jul 16, 2010, at 6:31 PM, James Walker wrote: > On 7/16/2010 2:45 PM, Eric Gorr wrote: >> Thanks, but I wasn't specific enough. >> >> What I am looking for is something like this: >> >> $WhoProvidedIcon /Path/To/file.myex >> >>

Re: Where did the icon come from?

2010-07-17 Thread Eric Gorr
on that has been provided by TextMate and registered with a > UTI. > > At the end of the day, a user or another UTI more specific than yours may set > the file icon regardless of what you want it to be. > > On Jul 16, 2010, at 5:50 PM, Eric Gorr wrote: > >> >>

Cleaning up a window with blocks

2011-09-29 Thread Eric Gorr
The intent of the following code is to implement a quick and easy way to bring up a window and provide a way to clean up after it closes. The problem is that it is crashing. I believe I am missing something obvious here and was hoping that someone could remove the blinders... - (void) displayW

Re: Cleaning up a window with blocks

2011-09-29 Thread Eric Gorr
Ya, thanks. I spotted that almost immediately after I posted the message. On Sep 29, 2011, at 4:22 PM, Ken Thomases wrote: > On Sep 29, 2011, at 11:42 AM, Thomas Davie wrote: > >> A quick scan over the code says that your issue is that you're referring to >> theObserver inside theObserver, wh

Question about SMJobBless

2011-09-29 Thread Eric Gorr
I cannot seem to locate any documentation on this, so hopefully someone can confirm the behavior I am seeing with Apple's sample SMJobBless code located at: http://developer.apple.com/library/mac/#samplecode/SMJobBless/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010071 I was under the impre

Re: Question about SMJobBless

2011-09-30 Thread Eric Gorr
? I am also wondering how it might be possible to only ask for an admin password once as an absolute regardless of the number of time the application was launched. Is this possible? If so, how? Thank you. On Sep 29, 2011, at 4:45 PM, Eric Gorr wrote: > I cannot seem to locate any document

Re: Question about SMJobBless

2011-09-30 Thread Eric Gorr
On Sep 30, 2011, at 10:34 AM, Jean-Daniel Dupas wrote: > > Le 30 sept. 2011 à 16:01, Eric Gorr a écrit : > >> I had a couple of followup questions concerning the approach used by >> SMJobBless in developing a secure helper tool. >> >> In the How It Works

Re: Question about SMJobBless

2011-09-30 Thread Eric Gorr
On Sep 30, 2011, at 1:00 PM, Jean-Daniel Dupas wrote: > Le 30 sept. 2011 à 18:14, Eric Gorr a écrit : > >> >> On Sep 30, 2011, at 10:34 AM, Jean-Daniel Dupas wrote: >> >>> >>> Le 30 sept. 2011 à 16:01, Eric Gorr a écrit : >>> >>>&g

Re: Question about SMJobBless

2011-09-30 Thread Eric Gorr
tool and, if that fails, then call SMJobBless. On Sep 30, 2011, at 1:40 PM, Kyle Sluder wrote: > On Sep 30, 2011, at 10:05 AM, Eric Gorr wrote: > >> On Sep 30, 2011, at 1:00 PM, Jean-Daniel Dupas wrote: >> >>> As I understand it, you have to bless the job only once,

Re: Question about SMJobBless

2011-09-30 Thread Eric Gorr
then this. On Sep 30, 2011, at 1:53 PM, Eric Gorr wrote: > That's interesting. > > So, how would one go about checking to see whether or not SMJobBless needed > to be called? > > I suppose one would need to check the version number of the installed job vs. > the

Re: Question about SMJobBless

2011-09-30 Thread Eric Gorr
= [currentBundleVersion integerValue]; NSLog( @"currentVersion: %ld", (long)currentVersion ); if ( currentVersion == installedVersion ) { needToInstall = NO; } } On Sep 30, 2011, at 3:09 PM, Eric Gorr wrote: > So, it look

Re: Question about SMJobBless

2011-09-30 Thread Eric Gorr
{ stErr = SecStaticCodeCheckValidity( staticCodeRef, kSecCSDefaultFlags, requirement ); needToInstall = NO; } } } On Sep 30, 2011, at 4:27 PM, Eric Gorr wrote: > Well, it turned out to be not that bad to check the version n

Re: PDF viewing

2011-10-04 Thread Eric Gorr
Yes. See the ZoomingPDFViewer sample code. http://developer.apple.com/library/ios/#samplecode/ZoomingPDFViewer/Introduction/Intro.html >From the description: This sample code project demonstrates how to create a PDF viewer using the UIScrollView and CATilerLayer classes. On Oct 4,

Re: Question about SMJobBless

2011-10-13 Thread Eric Gorr
FBundleCopyInfoDictionaryForURL( > (CFURLRef)currentHelperToolURL ); > NSString* currentBundleVersion= [currentInfoPlist > objectForKey:@"CFBundleVersion"]; > NSInteger currentVersion = [currentBundleVersion integerValue]; > > NSLog( @"currentVersi

Strange problem drawing a custom grid in NSTableView

2011-02-10 Thread Eric Gorr
I've got a sample project demonstrating the problem: http://ericgorr.net/cocoadev/TableViewGridDrawing.zip I've included a screen recording showing the problem as well. Basically, I need to drawn some vertical column line in a column. Since, in the real case, these lines would be drawn for only

Re: Strange problem drawing a custom grid in NSTableView

2011-02-10 Thread Eric Gorr
> > corbin > > On Feb 10, 2011, at 2:51 PM, Eric Gorr wrote: > >> I've got a sample project demonstrating the problem: >> >> http://ericgorr.net/cocoadev/TableViewGridDrawing.zip >> >> I've included a screen recording showing the problem as

Re: Strange problem drawing a custom grid in NSTableView

2011-02-11 Thread Eric Gorr
I filed a bug report on this: rdar://8988596 Hopefully this will be fixed soon or a workaround provided. In the meantime, I will just disable the Automatically Hide Scrollers feature of NSScrollView. On Feb 10, 2011, at 7:07 PM, Eric Gorr wrote: > Unfortunately, no. > > - (void

Setting a color in a NSBitmapImageRep to white or black

2011-02-17 Thread Eric Gorr
I've got this category method on NSColor: + (NSColor*) patternColorWithData:(unsigned char*)bits oneColor:(NSColor*)oneColor zeroColor:(NSColor*)zeroColor { NSBitmapImageRep* patternBitmap; patternBitmap = [[[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL

NSTableView & hiding or updating tooltips

2011-02-28 Thread Eric Gorr
For my NSTableView, I have defined - (NSString *)tableView:toolTipForCell:rect:tableColumn:row:mouseLocation: and this does return the string I want to display and the NSTableView does display that string as a tooltip. The problem is that while the tooltip is being displayed, I click the mouse

Customizing the drop highlight on a NSTableView

2011-03-02 Thread Eric Gorr
I found this old thread: http://lists.apple.com/archives/cocoa-dev/2005/Jun/msg01922.html which talks about overriding the private method: _drawDropHighlightOnRow: Now, I tried this out, and while the method does get called, it no longer appears to control the drop highlight of a row. I am us

Re: Book "Cocoa programming for Mac OS X" Third Edition

2011-03-11 Thread Eric Gorr
On Mar 11, 2011, at 9:52 AM, David Remacle wrote: > I have see on amazon the book "Cocoa programming for Mac OS X" third > Edition of Aaron Hillegass. Is this a good book for beginner ? Yes! It's the best book for a beginner learning Cocoa. > Which books for objective-C 2.0/Cocoa do you recommen

Books covering iOS security issues

2011-03-16 Thread Eric Gorr
I was just wondering if there were any books people would recommend, apart from Apple's documentation on the topic ( http://bit.ly/gz36Bn, etc. ), which discuss security issues and best-coding practices for iOS. Thank you. ___ Cocoa-dev mailing list

Changing tooltips in a custom view

2011-03-22 Thread Eric Gorr
I've got a sample project at: http://ericgorr.net/cocoadev/tooltip.zip What I would like to do is define a single tooltip rect for an entire view but be able to change the tooltip as the cursor moves inside of the view. Is there a way to do that? Is there a way to force it to hide the current

iOS - Hide Master view in a split view

2011-03-24 Thread Eric Gorr
I am trying to figure out how to hide the master view in a split view while in landscape mode. Searching, I found the suggestion to try: [[master view] setFrame:CGRectMake(0, 0, 0, 0)]; [[detail view] setFrame:splitBounds]; However, this does not appear to work. What is the recommend me

Re: iOS - Hide Master view in a split view

2011-03-24 Thread Eric Gorr
Sent from my iPhone On Mar 24, 2011, at 7:11 PM, WT wrote: > On Mar 24, 2011, at 6:27 PM, Eric Gorr wrote: > >> I am trying to figure out how to hide the master view in a split view while >> in landscape mode. Searching, I found the suggestion to try: &g

Using selectedMenuItemColor

2011-04-09 Thread Eric Gorr
I've got a sample application at http://ericgorr.net/cocoadev/colordrawing.zip attempting demonstrate what I am trying to do. Basically, I would like the smaller rectangles to the right of the large one to all look the same. However, when filling a rect using selectedMenuItemColor, the way the

Re: Using selectedMenuItemColor

2011-04-10 Thread Eric Gorr
On Apr 10, 2011, at 2:13 AM, Lee Ann Rucker wrote: > Interesting - if you set the view so its Y origin is zero, it draws as > expected. Hummm...I can't seem to get it to do much. If I alter the code to: [self setFrameOrigin:NSMakePoint( 0, 0 )]; for ( x = 0; x < 10; x++ )

Re: Using selectedMenuItemColor

2011-04-10 Thread Eric Gorr
On Apr 10, 2011, at 10:09 PM, Graham Cox wrote: > > On 11/04/2011, at 11:33 AM, Eric Gorr wrote: > >> Hummm...I can't seem to get it to do much. If I alter the code to: > > > Have you tried using NSAffineTransform to offset the coordinate system to > wher

Help Book question

2011-06-21 Thread Eric Gorr
This should be an easy question for someone to answer. I've got a sample application demonstrating the problem at: http://ericgorr.net/cocoadev/helpbooktest.zip After launching the application, bring up the help book from the help menu. The first about link is anchor based and should link to t

Re: Help Book question

2011-06-22 Thread Eric Gorr
On Jun 22, 2011, at 11:19 AM, Matt Neuburg wrote: > Even easier, though, if you were to ask this instead on the > apple-help-authoring list. Thanks. >> I would like to understand why the anchor based link isn't working. I'm sure >> I'm doing something obviously wrong > > Not necessarily;

Re: Creating a TCP server?

2011-07-26 Thread Eric Gorr
I would suggest checking out the SSD sample project from WWDC 2010. There are a couple of problems in the source which are covered in this thread: http://lists.apple.com/archives/Macnetworkprog/2011/Jul/msg5.html But the basics of what you want to do I believe are there... On Jul 26, 2011,

Re: Creating a TCP server?

2011-07-26 Thread Eric Gorr
Jul 26, 2011, at 12:23 , Eric Gorr wrote: > >> I would suggest checking out the SSD sample project from WWDC 2010. There >> are a couple of problems in the source which are covered in this thread: >> >> http://lists.apple.com/archives/Macnetworkprog/2011/Jul/msg5.h

Custom Title Bar Drawing

2009-12-02 Thread Eric Gorr
I found this old message: http://lists.apple.com/archives/cocoa-dev/2005/Aug/msg01688.html describing a technique on how to do custom title bars, but since it is rather old, I was wondering if there are better methods now or if this message is still describes the best techniques to use. Basica

NSTextView & Horizontal Scrollbar bug

2009-12-04 Thread Eric Gorr
I've got a sample application at http://ericgorr.net/cocoadev/TextViewNoWrap.zip which demonstrates the problem I am seeing. Basically, there is just a text view on a window with a horizontal scrollbar which appears only when needed. I have set this text view up based on the instructions found

Re: NSTextView & Horizontal Scrollbar bug

2009-12-05 Thread Eric Gorr
On Dec 4, 2009, at 12:30 PM, Ross Carter wrote: > On Dec 4, 2009, at 9:29 AM, Eric Gorr wrote: > >> I've got a sample application at >> http://ericgorr.net/cocoadev/TextViewNoWrap.zip which demonstrates the >> problem I am seeing. >> >> Basically, the

Window Groups in Cocoa

2010-01-05 Thread Eric Gorr
Was the window group feature (CreateWindowGroup, etc.) in the Carbon UI carried forward into Cocoa? As near I can tell, it was not. The primary feature I need from the Carbon UI is kWindowGroupAttrMoveTogether. So, assuming I haven't missed anything, and if you've needed this yourself, how di

[MEET] Columbia, MD CocoaHeads - Tuesday, Jan 12th

2010-01-11 Thread Eric Gorr
The next meeting of the Columbia, MD CocoaHeads group will be held on Tuesday, Jan 12th at Nemetschek North America, Inc. at 7pm. For more details on this meeting, please check out: http://cocoaheads.org/us/ColumbiaMaryland/index.html ___ Cocoa-dev

Displaying a non-contentual menu & attachPopUpWithFrame

2010-01-13 Thread Eric Gorr
In the 'Application Menu and Pop-up List Programming Topics for Cocoa' document it says: The preferred approach for programmatically displaying a non-contextual menu is to create an NSPopUpButtonCell object, set its menu, and then call send a attachPopUpWithFrame:inView: message to the pop-up b

Re: Displaying a non-contentual menu & attachPopUpWithFrame

2010-01-15 Thread Eric Gorr
Hello Mr. Ammon, It does help. Thank you! To test this out, I simply subclassed NSButton and only replaced the mouseDown: method with the following: - (void) mouseDown:(NSEvent *)theEvent { NSPopUpButtonCell *cell = [[NSPopUpButtonCell alloc] initTextCell:@"" pullsDown:NO]; NSMenu *tem

Why does my menu have mutually exclusive states?

2010-01-15 Thread Eric Gorr
I have some sample code at: http://ericgorr.net/cocoadev/UtilityMenu.zip According to the documentation in "Application Menu and Pop-up List Programming Topics for Cocoa", to get mutually exclusive states, one my manage this oneself: You can use states to implement a group of mutually exclusi

Re: Why does my menu have mutually exclusive states?

2010-01-15 Thread Eric Gorr
Ah, thank you. I knew I must have been missing something obvious. On Jan 15, 2010, at 2:50 PM, Peter Ammon wrote: > > On Jan 15, 2010, at 11:41 AM, Eric Gorr wrote: > >> I have some sample code at: >> >> http://ericgorr.net/cocoadev/UtilityMenu.zip >> >

Showing a menu after a delay...?

2010-02-01 Thread Eric Gorr
What I am trying to accomplish is displaying a menu (perhaps with NSPopUpButtonCell's performClickWithFrame method) after a user clicks on a sublass of NSButton and holds the left mouse button for >= 1 second. Is anyone aware of any sample code doing this? I imagine I will need to customize the

Re: Showing a menu after a delay...?

2010-02-01 Thread Eric Gorr
SelectorAfterDelay 1 second with a test method > 3. If the mouse goes up, set state up > 4. In the test method, test if the state is down... > > On Feb 1, 2010, at 4:42 PM, Eric Gorr wrote: > >> What I am trying to accomplish is displaying a menu (perhaps with >> NSPopUpB

Re: Showing a menu after a delay...?

2010-02-01 Thread Eric Gorr
t 10:44 PM, Richard Penwell wrote: > >> An alternative technique would be roughly: >> >> 1. Detect mouse down, set state down >> 2. Call performSelectorAfterDelay 1 second with a test method >> 3. If the mouse goes up, set state up >> 4. In the test method, test if

Re: Showing a menu after a delay...?

2010-02-01 Thread Eric Gorr
ct? > > On Feb 1, 2010, at 5:11 PM, Eric Gorr wrote: > >> Strange, I just replied to Richard saying that my selector is not performed >> until after the mouse button goes up. I can hold the mouse button down for >> several seconds and not see the selector performed. &

Re: Showing a menu after a delay...?

2010-02-01 Thread Eric Gorr
edControl. If the > NSSegmentedControl has both an action and a menu, then you will get the > behavior you describe. Furthermore, it will use the system-standard menu > delay, plus make the menu available to accessibility clients. > > -Peter > > On Feb 1, 2010, at 1:42 P

Re: Showing a menu after a delay...?

2010-02-01 Thread Eric Gorr
Very cool. Thank you! I shall have to bookmark that page. On Feb 1, 2010, at 6:18 PM, Nathan Kinsinger wrote: > On Feb 1, 2010, at 2:42 PM, Eric Gorr wrote: > >> What I am trying to accomplish is displaying a menu (perhaps with >> NSPopUpButtonCell's performClickWithFra

Re: Showing a menu after a delay...?

2010-02-02 Thread Eric Gorr
On Feb 1, 2010, at 6:18 PM, Nathan Kinsinger wrote: > On Feb 1, 2010, at 2:42 PM, Eric Gorr wrote: > >> What I am trying to accomplish is displaying a menu (perhaps with >> NSPopUpButtonCell's performClickWithFrame method) after a user clicks on a >> sublass o

windowWillResize: where does the 64 pixel limit come from?

2010-02-04 Thread Eric Gorr
When I am resizing my window, I have a delegate method windowWillResize:toSize: which is being called. What I am finding odd is that the width of the size being passed in will never go below 64 pixels even if the width for contentMinSize and minSize is less then 64 pixels. I can easily force the

Older version of spotlight importer plugin still seen by mdimport -L

2010-02-09 Thread Eric Gorr
I have already filed a bug report on this ( rdar://7602076 ) and am mostly wondering if there is any possible workaround while keeping the spotlight importer in the application bundle. Basically what is going on is that there are two different versions of the same application. Version 1.0 of th

Re: Cocoa-based GPS framework?

2010-02-12 Thread Eric Gorr
It's available for a regular Mac application in the 10.6 SDK. Check your Xcode documentation, you will see it there. On Feb 12, 2010, at 3:46 PM, Jonathon Kuo wrote: > Googling around, I see Core Location usage in reference only to the iPhone... > Is it only part of the iPhone SDK? Would ther

  1   2   3   4   >