Re: Thoughts on Cocoa

2019-10-02 Thread Sam Ryan via Cocoa-dev
It is good to know there is still solid support for Objective-C UI, thank you for the information John. It has felt like the support is not there the last few years, with much of the documentation "archived" and the new documentation focused on Swift. Presently, it is hard to justify native develop

Re: Thoughts on ARC

2019-10-01 Thread Sam Ryan via Cocoa-dev
ignored it. On Wed, 2 Oct 2019, 02:16 Richard Charles, wrote: > > > On Sep 30, 2019, at 5:57 PM, Sam Ryan wrote: > > > > I tried a completely new approach - Electron. I have found Electron to > be surprisingly quick to prototype, easy to bridge to c++, and is cross > p

Re: Thoughts on ARC

2019-09-30 Thread Sam Ryan via Cocoa-dev
No apology necessary, I'm pained by the same problems as you mentioned! On Tue, 1 Oct 2019 at 14:00, Jens Alfke wrote: > > > On Sep 30, 2019, at 4:57 PM, Sam Ryan wrote: > > I tried a completely new approach - Electron. I have found Electron to be > surprisingly quic

Re: Thoughts on ARC

2019-09-30 Thread Sam Ryan via Cocoa-dev
I have recently looked at utilising Swift to update an old Carbon based application. I stopped pursuing this path Swiftly, in part because of lack of good support for sockets and generally problematic use of CG* code. I tried a completely new approach - Electron. I have found Electron to be surpri

Re: NSData from dispatch_data_t?

2018-10-30 Thread Ryan Dignard
To get the size of the dispatch data you can call dispatch_data_get_size(dispatch_data_t) on it which would let you create an NSData object. https://developer.apple.com/documentation/dispatch/1452977-dispatch_data_get_size?language=objc -Ryan On Tue, Oct 30, 2018 at 7:26 PM Carl Hoefs wrote

Re: Conditionally declaring a BOOL in a .m file to be accessed in a .c function

2016-09-20 Thread Ryan Dignard
This doesn't work? in the .m file at file scope BOOL condition = NO; in the .c file at file scope extern BOOL condition; On Tue, Sep 20, 2016 at 8:14 AM, Alex Zavatone wrote: > I've been beating my head against the wall on this one. > > I'm trying to evaluate a condition and declare or conditio

Re: Resend: array = [NSArray new] or array = [NSArray array]?

2016-08-19 Thread Ryan Dignard
Under ARC there should be no appreciable difference. People who prefer +new will generally point out it's a keyword or operator in other languages so its meaning is not ambiguous. With manual reference counting, the difference is that +array is autorelease where as with +new your code is responsi

Re: Core Data or not

2016-08-06 Thread Ryan Dignard
To do it as one fetch you can set your predicate (or a sub predicate) as: [NSPredicate predicateWithFormat:@"%K in %@", primaryKey, keys] where primaryKey is the name of your ID property, and keys is an array of ID values which are "interesting" (as defined by the rest of your code). On Sat, Aug 6

Re: BOOL parameter passed as nil object

2016-04-18 Thread Ryan Dignard
To answer your second question consider BOOL b = (BOOL)someObj; if someObj happens to equal something like 0x12345600 the value of b will be NO because casting from a pointer to a char will return the least significant byte. For your first question I don't know exactly but it doesn't look safe;

Re: Getting a double-click on a text label

2016-04-17 Thread Ryan Dignard
Would NSClickGestureRecognizer work? I've done this on iOS with the equivalent UITapGestureRecognizer. On Sun, Apr 17, 2016 at 5:45 PM, Graham Cox wrote: > Hi al, > > Here’s something I thought would be trivial, turns out to be non-obvious. > > I have a text label that’s not normally editable t

Safe to access the objectID property of an NSManagedObject from a different thread?

2016-03-26 Thread Ryan Meisters
ok becuase "we're not accessing any Core Data properties at this point, we're accessing a ObjectID". Is this really ok? Kind Regards, Ryan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Image from UIView - text jagged...

2016-01-20 Thread Ryan Dignard
Have you tried `UIGraphicsBeginImageContextWithOptions(item.bounds.size, NO, 0.0)` ? I've never had problems with the implicit scale provided by the last parameter being `0.0` On Wed, Jan 20, 2016 at 11:17 AM, Eric E. Dolecki wrote: > I am creating images from what I'll call chart cells - so th

Re: Does NSObject have a "super" ?

2015-06-24 Thread Ryan Dignard
yea, you can run class_getSuperclass([NSObject class]) to confirm On Wed, Jun 24, 2015 at 10:50 AM, Dave wrote: > Hi, > > Quick question, does the “super” of NSObject == nil? > > Cheers > Dave > > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: Cannot create an NSPersistentStoreCoordinator with a nil model

2015-05-11 Thread Ryan Dignard
It may be advantage to log whether the model file exists and if it does exist if the permissions are correct. On Mon, May 11, 2015 at 1:06 PM, Alex Kac wrote: > So I've only seen this on OS X crashlytics, but one of my engineers > says he's seen some logs on iOS as well. So I'm not calling it an

Re: NIB for Cocoa Standard Alert Sheet

2015-04-20 Thread Ryan Dignard
You could create an UIAlertSheet show it and all that, then call recursiveDescription on the sheet which will tell you the description of all the views it has. You should be able to assemble a similar looking view with that info. On Mon, Apr 20, 2015 at 11:51 AM, Dave wrote: > Display a View wi

Affects of [interior]BackgroundStyle

2013-06-25 Thread Ryan McGann
oundStyle is set to NSBackgroundStyleDark. Anybody know what exactly is being done by setting the background style, and how I can apply the same affect everywhere in my application? Thanks, Ryan rmcg...@mac.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

NSScroller in layer backed view

2012-04-03 Thread Ryan Joseph
g the original NSScroller drawing. Does anyone know how I can acheive custom drawing of the NSScroller in the layer backed view? Thanks for any ideas you may have. Regards, Ryan Joseph thealchemistguild.com ___ Cocoa-dev mailing

Re: Keeping open menu after mouse up

2011-10-30 Thread Ryan Joseph
he only kink was that because this was being done within a button cell's > tracking, I had to post a fake mouse UP after the menu was closed to ensure > that the cell ended tracking. For a view that may not be necessary unless > you're doing something special on mouse up. >

Keeping open menu after mouse up

2011-10-28 Thread Ryan Joseph
t help the problem. Thanks for any ideas you may have. Regards, Ryan Joseph thealchemistguild.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mod

Re: Enter/exit full screen notification

2011-10-20 Thread Ryan Joseph
e. Key-value observing notifications are not sent when one of the above conditions occur, but has the same set of presentation options as the previously active application. Regards, Ryan Joseph thealchemistguild.com ___ Cocoa-de

Re: Enter/exit full screen notification

2011-10-20 Thread Ryan Joseph
); > APPKIT_EXTERN NSString * const NSWindowDidExitFullScreenNotification > NS_AVAILABLE_MAC(10_7); Regards, Ryan Joseph thealchemistguild.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests o

Enter/exit full screen notification

2011-10-19 Thread Ryan Joseph
windows) that needs to be hidden when any app goes into full screen, otherwise my window will cover the full screen app. Thanks for any ideas. Regards, Ryan Joseph thealchemistguild.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Does XCode 3.2 Documentation Browser Stink?

2011-10-15 Thread Ryan Homer
Instead of the the links you would use to the left of the actual documentation, you now use the breadcrumb links towards the top of the documentation. It took me a while to get accustomed to it, but in the end you have more room for your documentation text. > Am I missing something or does the

Re: Find panel problems

2011-09-20 Thread Ryan Joseph
IIRC the NSTextView needs to be both editable and selectable. > It also needs to be the key window when the find panel is actually displayed. Regards, Ryan Joseph thealchemistguild.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Find panel problems

2011-09-19 Thread Ryan Joseph
responding. The font panel works just fine so what else does the find panel expect to work? Maybe I broke something but I have no idea where to look and like I said I couldn't even find any documentation on the find panel. Thanks for any ideas! Regards, Ryan Joseph thealc

Re: No crash report generated

2011-07-23 Thread Ryan Joseph
head, an uncaught exception does not produce a crash report > although it's a crash for all purposes to a user. Regards, Ryan Joseph thealchemistguild.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

No crash report generated

2011-07-23 Thread Ryan Joseph
go on when diagnosing remote problems. Without installing GDB on his Mac (something I can't ask a user to do) I don't know how else to get more information. Any ideas or suggestions? Thanks! Regards, Ryan Joseph thealc

Re: NSTextView won't deallocate

2011-07-18 Thread Ryan Joseph
, Kyle Sluder wrote: > The retainCount being 4 is just a red herring. Regards, Ryan Joseph thealchemistguild.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the l

Re: NSTextView won't deallocate

2011-07-18 Thread Ryan Joseph
epeat after me: STOP THINKING ABOUT RETAIN COUNTS. > > If you follow the memory management rules, things will work. Regards, Ryan Joseph thealchemistguild.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: NSTextView won't deallocate

2011-07-18 Thread Ryan Joseph
le. I'm betting it doesn't. Regards, Ryan Joseph thealchemistguild.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

Re: NSTextView won't deallocate

2011-07-18 Thread Ryan Joseph
up and purged from memory. > > Sorry if I am getting you wrong and point out the obvious ... Regards, Ryan Joseph thealchemistguild.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or modera

Re: NSTextView won't deallocate

2011-07-18 Thread Ryan Joseph
/release the window. Another possibility is that > the view is retained by some other object that’s being leaked … sometimes you > have to look at all the leaks to find the one that triggers all the others. > (Use Instruments or the ‘leaks’ command to look for all leaked objects.)

NSTextView won't deallocate

2011-07-17 Thread Ryan Joseph
must be missing something... Thanks! The code (in Pascal): view := NSTextView.alloc.initWithFrame(NSMakeRect(0, 0, 0, 0)); // retainCount = 5 view.release; // retainCount = 4, dealloc never called Regards, Ryan Joseph thealchemistguil

Re: System Configuration Framework And CurrentSet notifications

2011-02-23 Thread Ryan McGann
Keys() SCDynamicStoreSetDispatchQueue OR SCDynamicStoreCopyRunLoopSource()/CFRunLoopAddRunLoopSource() and in your callback function that was passed to SCDynamicStoreCreate, call SCDynamicStoreCopyLocation() to retrieve the current location. I'm sure there's code out there that more fully i

Highlighted Text in PDF Kit

2011-01-03 Thread Ryan Brown
Hi, What is the best way to get a string for a block of highlighted text in PDF Kit, given a PDFAnnotationMarkup object? I've tried several approaches, but none of them deals with overlaps in the quadrilateralPoints, gets the text bounds correct, and adds spaces between lines of text. For examp

Re: Using Apple icons

2010-08-16 Thread Ryan Joseph
On Aug 17, 2010, at 2:52 AM, Steve Christensen wrote: >> Ryan Joseph (r...@thealchemistguild.org) on 2010-08-16 20:48 said: >> >>> What is Apples policy on using their icons in commercial application >>> icons? I wanted to use some of the common app icons that

Using Apple icons

2010-08-15 Thread Ryan Joseph
Thanks for you any suggestions you have. Regards, Ryan Joseph thealchemistguild.org ___ 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

Re: Screen pixels changed notification?

2010-07-26 Thread Ryan Joseph
This is perfect, thanks! On Jul 26, 2010, at 6:47 PM, Dave Keck wrote: > You're probably interested in CGRegisterScreenRefreshCallback(). Regards, Ryan Joseph thealchemistguild.org ___ Cocoa-dev mailing list (C

Screen pixels changed notification?

2010-07-26 Thread Ryan Joseph
mage. Are there any notifications I could get that would tell me if screen pixels changed that were within a certain rect on screen? Thanks. Regards, Ryan Joseph thealchemistguild.org ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Data downloading performance

2010-07-18 Thread Ryan McGann
On Jul 18, 2010, at 7:42 AM, Rafael Cerioli wrote: > Le 18 juil. 2010 à 03:03, Ryan McGann a écrit : >> Unfortunately, I can't find the sources at the moment as it was a while ago, >> but there was an interesting discussion about this topic on the >> macnetworkprog ma

Re: Data downloading performance

2010-07-18 Thread Ryan McGann
(Sorry, re-sending with the appropriate subject. Stupid copy & paste failed, my bad). >> On Jul 16, 2010, at 3:46 PM, Rafael Cerioli wrote: >> >>> Hi everybody, >>> >>> What would be the most efficient way to download data without blocking the >>> UI (I'm targeting old iPhone/iPod devices) ?

Re: Cocoa-dev Digest, Vol 7, Issue 745

2010-07-18 Thread Ryan McGann
>> On Jul 16, 2010, at 3:46 PM, Rafael Cerioli wrote: >> >>> Hi everybody, >>> >>> What would be the most efficient way to download data without blocking the >>> UI (I'm targeting old iPhone/iPod devices) ? >>> >>> - using a NSURLConnection seams nice, but as it calls its delegate >>> (-conne

Re: NSTextView retain count and HICocoaView problems

2010-07-15 Thread Ryan Joseph
On Jul 15, 2010, at 4:25 PM, Kyle Sluder wrote: > On Wed, Jul 14, 2010 at 9:39 AM, Ryan Joseph > wrote: >> 1) The retainCount from the newly created NSTextView returns 4 and goes up >> to 7 after I call HICocoaViewCreate on the NSTextView instance. I tried >>

NSTextView retain count and HICocoaView problems

2010-07-15 Thread Ryan Joseph
iew? I did some tests using other Cocoa views like NSScrollView but they returned 1 as the retainCount and sure enough calling release would deallocate the view. Any ideas? Thanks. Regards, Ryan Joseph thealchemistguild.org ___ Cocoa-d

Re: iPhone Dev Center down?

2010-06-18 Thread Ryan C. Payne
Brad, I am experiencing the same thing you are reporting with iTunes Connect... Ryan On Jun 18, 2010, at 10:28 PM, Brad Garton wrote: > Is there something weird going on? My problem is with "iTunes Connect" -- I > sign in and get to the main page, but whenever I click

Re: iPhone Dev Center down?

2010-06-18 Thread Ryan C. Payne
I'm able to get logged in. Ryan On Jun 18, 2010, at 10:10 PM, Rick Mann wrote: > I'm unable to log in. Anyone else? > > -- > Rick > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please

Re: Selecting rows in NSOutlineView from menuForEvent:?

2010-05-16 Thread Ryan C. Payne
On Apr 9, 2010, at 15:17, Nick Zitzmann wrote: > > On Apr 9, 2010, at 3:42 PM, Laurent Daudelin wrote: > >> However, the selection is the standard highlight, not the outline I see in >> any other table views in other Apple applications. > > I think the "drop highlighting" thing a few Apple app

NSNumberFormatter dropping trailing zeros?

2010-03-08 Thread Ryan Stephens
r. My only other thought would be to try and adjust roundingIncrement, but I'm not sure what value I'd be looking to use. The NSNumberFormatter docs, Data Formatting Guide and Google don't seem to be providing any other hints. Any advice? Thanks, Ryan _

Re: running javascript from obj-C

2010-03-03 Thread Ryan Wilcox
On 3/3/10 at 7:14 PM, sweetpproducti...@gmail.com (Russell Gray) wrote: And I was thinking of taking the approach, of feeding a javascript function to Safari: function hide_elements(id) {
document.getElementById(id).style.display="none";
 } where id would be fed to the script from the adblock

Using a NSNumberFormatter with a UITextField

2010-03-02 Thread Ryan Stephens
to an example on working through these (or similar) problems? In case anyone is curious, I've pasted my current implementation of textField:ShouldChangeCharactersInRange:replacementString: below. Thanks, Ryan - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRa

Re: Synthesize NSMutableString retain count question

2010-02-17 Thread Ryan Homer
On 2010-02-03, at 6:55, Philip Vallone wrote: > Hi List, > > This is probably a very elementary question. I have a NSMutableString that I > Synthesize. When I assigned a value to it: > > currentSection = @"Some value"; You should probably use self.currentSection instead of just currentSection

Re: EXC_BAD_ACCESS mystery

2009-11-10 Thread Ryan Homer
These might also be helpful: http://www.cocoadev.com/index.pl?DebuggingTechniques (in particular see the "Breaking on Exceptions" section where they talk about objc_exception_throw) http://chanson.livejournal.com/171198.html Then, when you crash, bring up the Debugger (Cmd-Shift-Y). Sometimes you

Re: Font experts: How to determine if a glyph is available for a particular character

2009-11-10 Thread Ryan Homer
On 2009-11-10, at 10:51 AM, Alastair Houghton wrote: > On 10 Nov 2009, at 15:21, Ryan Homer wrote: > >> Let's say I have a Unicode character such as U+21002 (CJK Unicode ext. B) >> and a certain font, say STHeiti. I would like to programatically determine >> if

Font experts: How to determine if a glyph is available for a particular character

2009-11-10 Thread Ryan Homer
Let's say I have a Unicode character such as U+21002 (CJK Unicode ext. B) and a certain font, say STHeiti. I would like to programatically determine if the font contains a glyph for the character. How can I do this? I know that NSString(AppKitAdditions) has sizeWithAttribute: but that doesn't t

Re: NSString's handling of Unicode extension B (and C) characters

2009-11-07 Thread Ryan Homer
[SOLVED] On 2009-11-06, at 12:42 PM, Clark Cox wrote: On Fri, Nov 6, 2009 at 5:22 AM, Ryan Homer wrote: On 2009-11-05, at 1:42 PM, Clark Cox wrote: Yes. I am importing characters from a text file and need to process them in a certain way. A word may have an alternate form which is

Re: Mac Mini or iMac for Cocoa Development?

2009-09-13 Thread Ryan Thompson
machine you choose ; ) Hope this helps, -Ryan. ___ 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/

Re: Adding actions to undo manager

2009-06-15 Thread Ryan Joseph
On Jun 16, 2009, at 8:34 AM, Kyle Sluder wrote: On Mon, Jun 15, 2009 at 6:18 PM, Ryan Joseph> wrote: I'm not sure I follow you. How do I know the user wants to undo and that it was in response to my change of the NSTextStorage? It seems like one way or another I need to keep a

Re: Adding actions to undo manager

2009-06-15 Thread Ryan Joseph
On Jun 15, 2009, at 10:16 PM, I. Savant wrote: Thanks. What a challenge just for some basic undo support, there really should be something simpler than this. There is, and it's already been suggested. If you want higher-level functionality, use the higher-level facilities of the text sy

Re: Adding actions to undo manager

2009-06-15 Thread Ryan Joseph
Thanks. What a challenge just for some basic undo support, there really should be something simpler than this. On Jun 15, 2009, at 1:08 PM, Kyle Sluder wrote: If you want undo manager support, you need to either perform the undo machinations yourself, or target your modifications at an entity

Adding actions to undo manager

2009-06-14 Thread Ryan Joseph
Simple question, how is it possible to have changes made programatically to NSTextStorage be added to the undo manager? I tried enclosing the changes in begin/endEditing calls but this did not work. Thanks in advance. Regards, Josef ___

Re: "Leaks" utility

2009-06-12 Thread Ryan Joseph
On Jun 13, 2009, at 12:26 PM, Greg Parker wrote: Can anyone who uses this utility tell me how to set the this environment variable? I'm thinking it's possible this must be set via GDB, otherwise I'm not sure where it could get a stack trace from. Thank you for helping. Environment variab

Re: "Leaks" utility

2009-06-12 Thread Ryan Joseph
On Jun 13, 2009, at 12:11 PM, Joar Wingfors wrote: On 12 jun 2009, at 22.04, Ryan Joseph wrote: Thank you, but I'm not using Xcode and need an actual unix solution. Knowing the command which was generated from that would be useful (maybe it's output into a console someplace?). T

Re: "Leaks" utility

2009-06-12 Thread Ryan Joseph
ad of loading MallocDebug. On Jun 13, 2009, at 12:04 PM, Chris Suter wrote: Hi Ryan, On Fri, Jun 12, 2009 at 9:29 PM, Ryan Joseph> wrote: I wasn't sure where to post this but Cocoa programmers should know as well as any one else I thought. I have just learned about the "leaks

Re: "Leaks" utility

2009-06-12 Thread Ryan Joseph
Thank you, but I'm not using Xcode and need an actual unix solution. Knowing the command which was generated from that would be useful (maybe it's output into a console someplace?). Thanks again. On Jun 13, 2009, at 11:59 AM, Dave Keck wrote: In Xcode: in the left column, under the "Executa

"Leaks" utility

2009-06-12 Thread Ryan Joseph
I wasn't sure where to post this but Cocoa programmers should know as well as any one else I thought. I have just learned about the "leaks" unix utility for detecting memory leaks but I'm not unix savvy enough to understand a point mentioned in the man page. Which is: "If the MallocStackL

NSPathControl popup menu

2009-05-15 Thread Ryan Joseph
How can I be notified when a user selects an item from the menu in popup menu mode? All I can get is the double click action. The example I'm looking "ObjectPath" seems to not have this functionality either. Thanks. Regards, Josef ___ Co

Re: Calling undo programatically

2009-05-13 Thread Ryan Joseph
On May 14, 2009, at 12:48 PM, Graham Cox wrote: On 14/05/2009, at 3:37 PM, Ryan Joseph wrote: Great, thanks! That leads me to consider the real problem, do I need to create an undo manager manually if I create the NSTextView without initWithFrame:? I bet that's the problem... T

Re: Calling undo programatically

2009-05-13 Thread Ryan Joseph
On May 14, 2009, at 12:29 PM, Graham Cox wrote: On 14/05/2009, at 3:25 PM, Ryan Joseph wrote: I have a NSTextView I have assembled programatically and placed it into a HICocoaView being used in a Carbon window. All the commands work except undo (called setAllowsUndo already) so I would

Calling undo programatically

2009-05-13 Thread Ryan Joseph
I have a NSTextView I have assembled programatically and placed it into a HICocoaView being used in a Carbon window. All the commands work except undo (called setAllowsUndo already) so I would like to call undo programatically to test in order to determine if Carbon is messing this up or it

Re: Text encoding issues

2009-05-12 Thread Ryan Joseph
It was under my nose the whole time! Thanks, that TEC sniffer thing wasted an hour of my life. On May 13, 2009, at 9:02 AM, Dave Geering wrote: On Wed, May 13, 2009 at 11:53 AM, Ryan Joseph wrote: First question, why is the most obvious and best solution deprecated? NSString&#

Text encoding issues

2009-05-12 Thread Ryan Joseph
I'm dealing with my first attempt to cope with text encodings, ugh... This is an issue confronting everyone reading text files so there should be a SIMPLE solution to the problem, which is, how do I know what encoding the file is I'm opening? First question, why is the most obvious and best

Undo with NSTextView in HICocoaView

2009-05-04 Thread Ryan Joseph
Are there any special steps for adding undo support for NSTextView if it's embedded in a HICocoaView? All the other edit commands are working but undo just gives me a beep. I created the NSTextView programatically also so maybe I simply forget to include something, although I'm not sure wha

Re: Storing a table view in user defaults

2009-04-28 Thread Ryan Briones
est, >Steven Riggs > > > > On Apr 28, 2009, at 10:02 PM, Ryan Briones wrote: > > Hey, thanks! I actually ran across your code last night when I was first > doing this. I ran your code and it worked fine. I created a test project to > "copy" your code, and mine fai

Re: Storing a table view in user defaults

2009-04-28 Thread Ryan Briones
b > > I hope it helps... > > Steven Riggs > > > > On Apr 28, 2009, at 11:04 AM, Ryan Briones wrote: > > I'm a relative newb when it comes to cocoa programming, but I've been >> trying >> to finish of a project and put it out there so I can get som

Re: Storing a table view in user defaults

2009-04-28 Thread Ryan Briones
On Tue, Apr 28, 2009 at 2:31 PM, Jerry Krinock wrote: > > On 2009 Apr 28, at 08:04, Ryan Briones wrote: > > My problem is that I have a table view that's bound >> to an array controller backed by user defaults in IB. >> > > I don't know what "backe

Storing a table view in user defaults

2009-04-28 Thread Ryan Briones
an't figure out what. Any help is appreciated. Thanks. -- Ryan Carmelo Briones ___ 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

Re: NSTextView re-implementing word wrapping

2009-04-27 Thread Ryan Joseph
Sorry, I didn't post code because it was in Pascal, but it's easy enough to read (remember the old Inside Macintosh books?). I could re- write in Objective-C if anyone needed... setMaxSize: and setWidthTracksTextView: are the culprits here and simply reversing them doesn't work because I don

NSTextView re-implementing word wrapping

2009-04-26 Thread Ryan Joseph
After reading through the archives I learned how to turn off word wrapping in NSTextView by calling a few methods in both NSText and NSTextContainer but calling them in reverse order (reverting the effect) did not restore word wrapping properly. In particular I think the problem is setConta

Spell check based on text color

2009-04-15 Thread Ryan Joseph
I'm wanting NSSpellChecker to ignore certain ranges of text in a NSTextView based on color. I implemented shouldSetSpellingState:range: which was successful in not underlining words that are in the colored ranges but in the spelling panel or with the "check spelling" command it still select

Re: NSTextView HICocoaView performance

2009-04-09 Thread Ryan Joseph
On Apr 9, 2009, at 10:22 PM, Marcel Weiher wrote: On Apr 9, 2009, at 7:51 , Ryan Joseph wrote: On Apr 9, 2009, at 9:42 PM, Marcel Weiher wrote: On Apr 9, 2009, at 1:06 , Ryan Joseph wrote: [NSTextView in HICocoaView performance problems] [requests for more information] I have used

Re: NSTextView HICocoaView performance

2009-04-09 Thread Ryan Joseph
On Apr 9, 2009, at 9:42 PM, Marcel Weiher wrote: On Apr 9, 2009, at 1:06 , Ryan Joseph wrote: I was really excited when Apple released HICocoaView so in particular I could use NSTextView in my Carbon apps. However, this thing has some pretty serious performance issue when resizing and

NSTextView HICocoaView performance

2009-04-09 Thread Ryan Joseph
I was really excited when Apple released HICocoaView so in particular I could use NSTextView in my Carbon apps. However, this thing has some pretty serious performance issue when resizing and when adding/ removing lines (return or deleting while type). Resizing is painfully slow and choppy b

Re: Toll-free bridge type at runtime

2009-04-05 Thread Ryan Joseph
hat I will keep in mind. Thanks. On Apr 5, 2009, at 4:22 PM, Uli Kusterer wrote: On 03.04.2009, at 09:22, Ryan Joseph wrote: The Pascal compiler I'm using would need some extra runtime support (like telling me if a pointer is an object) to accomplish what you are talking about, but ye

Re: Cocoa user pane equivalent?

2009-04-04 Thread Ryan Joseph
On Apr 5, 2009, at 11:30 AM, Michael Ash wrote: On Sat, Apr 4, 2009 at 10:20 PM, Jo Meder wrote: Hi, I'm in the planning stages of porting the Mac back end of my cross platform UI framework from Carbon to Cocoa, because I need 64 bit GUI support. It looks like it should be relatively str

Re: Beachball on Lengthy Task

2009-04-04 Thread Ryan Joseph
Are you aware of threading or run loops? There is no problem here, you must share the processor with OS X. Read about those concepts and come back later with questions. ;) On Apr 5, 2009, at 8:08 AM, Pierce Freeman wrote: Hi everyone: I am getting the beachball of death when I try to run a

Automating reading classes with InterfaceBuilder

2009-04-04 Thread Ryan Joseph
I'm working on a Pascal bridge to Cocoa and as part of the system I have a PHP script which converts files to Objective-C headers, which InterfaceBuilder can use. However first I must manually "Read class files" and Reload in InterfaceBuilder. Xcode does this so there must be a way, but can

Re: Toll-free bridge type at runtime

2009-04-03 Thread Ryan Joseph
On Apr 3, 2009, at 12:47 PM, Bill Bumgarner wrote: On Apr 2, 2009, at 8:40 PM, Ryan Joseph wrote: // We must use the "Handle" which is the Objective-C object because dragTypes is a NSArray wrapper and passing a Pascal object to Objective-C runtime WILL cause errors

Re: Toll-free bridge type at runtime

2009-04-02 Thread Ryan Joseph
pes(dragTypes.Handle); I just didn't want users to type .Handle and let that choice be made a runtime behind the scenes. Was that worth everyones time? ;) On Apr 3, 2009, at 10:26 AM, Chris Hanson wrote: On Apr 2, 2009, at 7:38 PM, Ryan Joseph wrote: I think I need explain what exa

Re: Toll-free bridge type at runtime

2009-04-02 Thread Ryan Joseph
On Apr 3, 2009, at 10:11 AM, Michael Ash wrote: The wrapper is simply a Pascal object that encapsulates a Cocoa object. The underlying object is exactly the same as it appears in Cocoa, except it's accessed via Objective-C runtime functions. The fact it's a "wrapper" is really not importan

Re: Toll-free bridge type at runtime

2009-04-02 Thread Ryan Joseph
Oh, if they're connected on THAT level then there really is no way. So NSArray is a wrapper for CFArray? ;) If the Runtime Wrangler says it can't be done, it probably can't be done. Thanks for clearing this up. On Apr 3, 2009, at 9:59 AM, Greg Parker wrote: On Apr 2, 2009, a

Re: Toll-free bridge type at runtime

2009-04-02 Thread Ryan Joseph
On Apr 3, 2009, at 9:59 AM, Mark Ritchie wrote: On 2-Apr-09, at 10:38 PM, Ryan Joseph wrote: I think I need explain what exactly I need this for. I'm making a Pascal bridge to Cocoa and it would be convenient if I could pass a CF type or a Pascal wrapper indiscriminately and deci

Re: Toll-free bridge type at runtime

2009-04-02 Thread Ryan Joseph
On Apr 3, 2009, at 9:17 AM, Ali Ozer wrote: One point of the discussion is that there is no need to do this, and things you think you might want to do the test for are probably invalid. But, if you wanted to test, you could see if the instance you have isKindOfClass:[NSCFArray class]. H

Toll-free bridge type at runtime

2009-04-01 Thread Ryan Joseph
I'm trying to determine at runtime if a type is CoreFoundation or Cocoa, for example NSArray/CFArray. I must use Carbon API however to determine this before I attempt to use Cocoa methods for introspection. My first test was to use CFGetTypeID and CFCopyTypeIDDescription but they both retur

Re: NIB Init method for window subclasses

2009-03-25 Thread Ryan Joseph
That explains it, Thank you Mike. On Mar 25, 2009, at 9:26 PM, Michael Ash wrote: On Tue, Mar 24, 2009 at 10:43 PM, Ryan Joseph wrote: I have a window in a NIB file which I have assigned a class in the "Class Identity" field and corresponding NSWindow subclass in code. Accordi

Overriding -dealloc on any object

2009-03-25 Thread Ryan Joseph
I'm working on a Cocoa bridge for Pascal and looking for a solution to manage the wrapper objects that are directly related to all their Objective-C counterparts, and therefore must be released in pairs. I understand that -dealloc is the designated location to release instances owned by the

NIB Init method for window subclasses

2009-03-24 Thread Ryan Joseph
I have a window in a NIB file which I have assigned a class in the "Class Identity" field and corresponding NSWindow subclass in code. According to the reference (which is copied below) I think I should be receiving a initWithCoder: message (there are only 3 options) but I never get it. Cus

Re: Newbie: Learning path for my GTD app...

2009-03-04 Thread Ryan Thompson
poster who said that Core Data is not an intro-level technology. You'll be able to play around with it soon, but don't use it in your first app! Hope this helps. Good luck! -Ryan. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Re: CFMessagePort and GC

2008-11-30 Thread Ryan Brown
Also, forgot to mention: calling either objc_collect_if_needed() or [[NSGarbageCollector defaultCollector] collectExhaustively] after releasing the run loop source and message port doesn't force an immediate deallocation. Not sure why. On Nov 30, 2008, at 9:15 PM, Ryan Brown wrote:

CFMessagePort and GC

2008-11-30 Thread Ryan Brown
CFCollection_non_gc_storage_error to debug". CFMessagePort stores all local ports in a global dictionary, which is probably the source of this. Is there another way to deal with this? Does this warrant filling a radar? Best, Ryan ___ Cocoa-dev m

Re: Detect the login window is being displayed

2008-11-12 Thread Ryan McGann
he login/logout notifications will only be posted after your application has already quit. Please describe what you mean by "daemon" and how your application is being launched. Ryan [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@li

  1   2   >