No Title Bar on NSPanel

2009-06-04 Thread John Ku
to see if I can utilize NSPanel and its capabilities before I go create a custom NSWindow from scratch. I really just need the simple looking NSPanel with drop shadows, resizing, etc.. Thanks, John ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: QTCaptureSession class reference

2009-06-03 Thread John Cain
t; > http://developer.apple.com/documentation/QuickTime/Conceptual/ > QTKitCaptureProgrammingGuide/Introduction/Introduction.html > > > On Jun 3, 2009, at 5:56 PM, Cain John wrote: > > I cannot find this documentation. Searching the Mac Dev Center gives over >> 60 referenc

QTCaptureSession class reference

2009-06-03 Thread Cain John
I cannot find this documentation. Searching the Mac Dev Center gives over 60 references to the class but no documentation of it's properties and methods. Hope that this is an appropriate list for this question. There doesn't seem to be an Apple sponsored QT list. John kergunyah...

Re: Custom view attached to a menu bar NSStatusItem application

2009-05-29 Thread John Ku
like a menu and attaches underneath the icon on the menu bar. If I subclass NSMenu, is there a way to draw my own background, border, add custom buttons on this Menu? On Fri, May 29, 2009 at 1:20 AM, Seth Willits wrote: > On May 29, 2009, at 12:46 AM, John Ku wrote: > > Any alternati

Custom view attached to a menu bar NSStatusItem application

2009-05-29 Thread John Ku
. Then I'll bring front, make key that custom NSWindow with local coordinates within NSStatusItem. Does this work? Or is drawing inside NSStatusItem will only be limited in the height of the menu bar? Any alternatives? What direction should I look into? Much Appreciated!

Re: Performance, Efficiency - Coding practice

2009-05-28 Thread John Ku
Better than making mistake one after another. But good lesson for me. Cheers, John On Thu, May 28, 2009 at 6:01 PM, Graham Cox wrote: > > On 29/05/2009, at 10:56 AM, Andrew Farmer wrote: > > Nope, that'd be assigning a NSString instance to a NSMutableString >> variabl

Re: Performance, Efficiency - Coding practice

2009-05-28 Thread John Ku
hanks, John On Thu, May 28, 2009 at 5:50 PM, Shawn Erickson wrote: > On Thu, May 28, 2009 at 5:42 PM, John Ku wrote: > > Thank you all for the explanation. After reading over and experiment, I > kind > > of get what you all are saying.I've probably confused myself too much >

Re: Performance, Efficiency - Coding practice

2009-05-28 Thread John Ku
;test"]; That would be correct and safe? Thank!! John On Thu, May 28, 2009 at 5:30 PM, Kyle Sluder wrote: > On Thu, May 28, 2009 at 4:57 PM, John Ku wrote: > > NSString *title = [[NSString alloc] init]; > > title = @"TEST"; > > NSString is immutable, and O

Performance, Efficiency - Coding practice

2009-05-28 Thread John Ku
n terms of efficiency, memory, performance? The update method will get called often. So Im thinking there is no need to create 'NSPoint drawAtOrigin' everytime. Your thoughts? Thanks, John ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

multiple windows (dialogs) per nib (.xlib) file

2009-05-28 Thread John Yeh
t]; [NSApp runModalForWindow: [dialogController window]; This is sure to open all the windows. If I name the windows as "MyDialog1", "MyDialog2", and so on, how to render "MyDialog1" exclusively? Thanks. -John ___ Cocoa-dev

Re: Booleans

2009-05-27 Thread John Ku
Thank you all, a newb mistake. :PIm going crazy trying to put pointer on everything. Btw, BOOL is not, is Boolean a pointer type? Thanks! On Wed, May 27, 2009 at 11:46 PM, Roland King wrote: > BOOL isn't an object. you want BOOL not BOOL* > > John Ku wrote: > >> I am tr

Booleans

2009-05-27 Thread John Ku
r without a cast" Anyone know what's wrong? Thanks, John ___ 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 H

Re: String Comparison and return values

2009-05-26 Thread John Ku
Yeah, it seems that the problem exist between chair and keyboard. Just starting, so I thought I could use NSString for everything. :) Need to pay attention to types more! Thanks, John On Tue, May 26, 2009 at 1:10 AM, Jelle De Laender < maill...@codingmammoth.com> wrote: > A NSNum

Re: String Comparison and return values

2009-05-26 Thread John Ku
Ahhh, that's a really great tip! Thanks!!Would come in really handy! On Tue, May 26, 2009 at 1:04 AM, Thomas Davie wrote: > > Op 26 May 2009, om 09:56 heeft John Ku het volgende geschreven: > > Oh so the very first return value from a Dictionary is not actually a >> str

Re: String Comparison and return values

2009-05-26 Thread John Ku
:57 AM, listsapple wrote: > > I wonder if isEqualToNumber is what you need? > > bw > > > On 26 May 2009, at 08:46, John Ku wrote: > > Its weird, I saw isEqualToString from the apple documents too, but don't > understand why it isn't recognized > > On

Re: String Comparison and return values

2009-05-26 Thread John Ku
ves me an error. Thanks, John On Tue, May 26, 2009 at 12:48 AM, Bill Bumgarner wrote: > On May 26, 2009, at 12:46 AM, John Ku wrote: > >> Its weird, I saw isEqualToString from the apple documents too, but don't >> understand why it isn't recognized &g

Re: String Comparison and return values

2009-05-26 Thread John Ku
Its weird, I saw isEqualToString from the apple documents too, but don't understand why it isn't recognized On Tue, May 26, 2009 at 12:42 AM, John Ku wrote: > Thanks, but its giving me this error now: > > * *** -[NSCFNumber isEqualToString:]: unrecognized selector sent to

Re: String Comparison and return values

2009-05-26 Thread John Ku
Thanks, but its giving me this error now: * *** -[NSCFNumber isEqualToString:]: unrecognized selector sent to instance 0x147ee0* * * *-John* On Tue, May 26, 2009 at 12:40 AM, Graham Cox wrote: > > On 26/05/2009, at 5:33 PM, John Ku wrote: > > isEqualTo >> > >

String Comparison and return values

2009-05-26 Thread John Ku
or example "312" pid one of the "[apps valueForKey: @"NSApplicationProcessIdentifier"]" should also return the same "312" When I NSLog both, there is a matching set "312", but the if statement is returning false...any tips? Thanks, John _

Re: Getting other application's window/document name

2009-05-21 Thread John Ku
ainst with what I get from NSWorkspace/LaunchedApplication, but the palettes and inspectors are there. Too trigger happy on my part. :P Perhaps there is a tricky way to filter it, all I need is to get only the launched Applications and their window/document if any. Any ideas? Cheer, John Ku On Thu

Re: Getting other application's window/document name

2009-05-21 Thread John Ku
Fantastic, this is exactly what Im looking for. Time to dive into C! Thanks!! On Thu, May 21, 2009 at 10:24 PM, Eric Schlegel wrote: > > On May 21, 2009, at 12:59 AM, John Ku wrote: > > What should I look into if I need to grab the document/window name from >> other ru

Getting other application's window/document name

2009-05-21 Thread John Ku
applications? Cheers, John ___ 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/Update your Subscription

Re: CGRectUnion with one empty Rectangle

2009-05-20 Thread John Harper
CGRectZero is the rectangle at point (0, 0) with zero size. For an empty rectangle that will work correctly with CGRectUnion you need to use CGRectNull instead. John On May 20, 2009, at 11:45 AM, Gordon Apple wrote: IMHO, if it works the way you describe, it's doing the

Re: Disabling check box cells

2009-05-10 Thread John Baldwin
Thanks. "Conditionally sets enabled" was the issue. The link to the video no longer seems to work, however. John On Friday May 8 4:33 AM, at 4:33 AM, Kyle Sluder wrote: On Wed, May 6, 2009 at 1:37 AM, John Baldwin > wrote: I'm fairly new to Cocoa, and I have a table with c

Re: detect option key on startup

2009-05-10 Thread John Joyce
Depending on why you want to do this, you may want/need to try different approaches with mini-test apps to see what your results are. If you test with iPhoto for example, it does load the main menu nib, but loads a different nib than the usual main window for choosing or creating an iPhoto li

Re: quick and dirty NSData implosion

2009-05-08 Thread John Cebasek
Why don't you do something like this: @try { [defaults setObject:bookMarkList forKey:PECBookMarkListKey]; } @catch (NSException *e) { NSLog(@"NSData blew up because: %@", [e reason]); } and find out what the error is? John On 8-May-09, at 9:56 AM, jon wrote: yes i did

[ANN] RegexKitLite 3.0 - Released

2009-05-06 Thread John Engelhart
The release version of RegexKitLite 3.0 is now available. You can download it at: http://downloads.sourceforge.net/regexkit/RegexKitLite-3.0.tar.bz2 Documentation is available at: http://regexkit.sourceforge.net/RegexKitLite/index.html XCode 3 integrated documentation is also available: feed:// reg

Disabling check box cells

2009-05-06 Thread John Baldwin
the checkbox. Am I expecting the wrong thing, or missing a step? John ___ 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.

Re: ObjectAlloc and objects that should have been released

2009-05-04 Thread John Pannell
, performy/profiley stages of development. If NSZombieEnabled is left on, much leaking ensues. Later! John On May 1, 2009, at 9:32 AM, Miles wrote: Hi guys- I'm still really struggling with this. I keep creating the most simple examples I can and ObjectAlloc continues to show objects as &#x

Audio recording of internal sound data

2009-05-04 Thread John Hall
he output back to the input. It seems the data is already there inside QuickTime and I just need to figure out how to access it and use it directly as the input to my recording code (I've been using the QuickTime movie Sequence Grabber for recording). Does

[ANN] RegexKitLite 3.0 - Release Canidate, feedback wanted

2009-04-30 Thread John Engelhart
All, RegexKitLite 3.0 development is wrapping up. I'm looking for feedback before I freeze things in an actual release, particularly from current RegexKitLite users. Because it's not released yet, you'll need to grab it via svn. You can do so from the shell with 'svn co http://regexkit.svn.sourc

Re: CF autorelease?

2009-04-23 Thread John Engelhart
On Thu, Apr 23, 2009 at 9:56 PM, Wade Tregaskis wrote: > Something I've been using as of late to make CF a little more bearable is > the cleanup attribute offered by gcc, e.g.: > > static inline void _autoreleaseCFArray(CFArrayRef *array) { >>if (NULL != *array) { >>CFRel

code behind NSRunAlertPanel

2009-04-21 Thread John Yeh
I want to know how NSRunAlertPanel is implemented assuming the code is also written in Cocoa. I am curious why NSRunAlertPanel is able to run on top of a modal dialog. Can someone please point me to the code sample or document? Thanks. -John ___ Cocoa

Modal dialog over modal dialog in Cocoa

2009-04-21 Thread John Yeh
: [newCertController window]]; The init function for each dialog looks like this: @implementation SettingsController - (id)init { [super init]; self = [super initWithWindowNibName:@"FLAirMainSettingsPanel"]; return self; } Thanks. -John ___

Re: Converting String Representations at Runtime

2009-04-20 Thread John Joyce
Is there an easy way to take input (user or file based) at runtime and convert unicode strings such as \u8D64 (UTF8 character) or a whole series of these to the human-readable characters they represent? I imagine I should be using NSScanner, but is there not some simple function or method to

Re: Using CFStringTransform with Attributed strings or runs, maintaining the styling of the Attributes in transformed results.

2009-04-19 Thread John Joyce
On Apr 19, 2009, at 3:42 PM, John Joyce wrote: Currently, I'm using CFStringTransform to convert Java-based strings files (JBoss .properties files) to something human-readable for verification. Works brilliantly. Luckily, these files are short and this function is super fast. This en

Using CFStringTransform with Attributed strings or runs, maintaining the styling of the Attributes in transformed results.

2009-04-19 Thread John Joyce
Currently, I'm using CFStringTransform to convert Java-based strings files (JBoss .properties files) to something human-readable for verification. Works brilliantly. Luckily, these files are short and this function is super fast. This enables me to naively take all the text of a file provided

Re: -[NSView lockFocus] assertion failure

2009-04-17 Thread John C. Randolph
On Apr 15, 2009, at 5:52 PM, James G. wrote: I've got an NSTextField within a layer-backed view, with several other layers. The text field sits hidden on top of two other CALayers. When the view is double clicked, the NSTextField is unhidden, to allow the user to edit the text. When the us

Re: -viewDidMoveToWindow without subclassing? NSViewController?

2009-04-17 Thread John C. Randolph
On a general note, if you want something to happen later than - awakeFromNib, you can always send - performSelector:withObject:afterDelay:cancelPrevious:. If you pass a delay of zero, it will happen the next time through the event loop. I've used this many times to deal with situations simi

Re: unrecognized selector sent to instance

2009-04-15 Thread John C. Randolph
Jason, I just tried dropping your code into a new Foundation Tool project, and it looks like your problem happens when your subclass of NSOutputStream sends [super initToFileAtPath:append:]. Check the subclassing notes on NSOutputStream. It looks like it's a class cluster, and NSOutputS

Converting String Representations at Runtime

2009-04-12 Thread John Joyce
Is there an easy way to take input (user or file based) at runtime and convert unicode strings such as \u8D64 (UTF8 character) or a whole series of these to the human-readable characters they represent? I imagine I should be using NSScanner, but is there not some simple function or method to

Re: PDFView in layer backed view appears white

2009-04-06 Thread John Calhoun
d in your views drawRect method. You can set the needed scale on the current graphics context to have the PDFPage draw at the correct size. Also, don't forget to erase to white before calling PDFPage's draw. John Calhoun—___ Cocoa-de

PackageMaker Script

2009-04-05 Thread John Nairn
aker 3.0.3 ---- John Nairn http://www.geditcom.com Genealogy Software for the Mac ___ 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

Re: Beachball on Lengthy Task

2009-04-04 Thread john chen
You can try to do that task in another thread. John On Sat, Apr 4, 2009 at 8:08 PM, Pierce Freeman wrote: > Hi everyone: > > I am getting the beachball of death when I try to run an action that takes > over a few seconds to complete. Given, the beachball goes away after the > ta

programatically modifying com.apple.eap.profiles & com.apple.eap.bindings

2009-04-02 Thread John Anthony Grigutis
code to do it, but if there is some framework I'm overlooking that would do this better, I'd really like to know. Any thoughts? -- John Anthony Grigutis Systems Analyst/Programmer/Mac Specialist Apple Certified (ACSA/ACSP/ACTC) I

Re: Printing/reports?

2009-04-02 Thread John Velman
ing programming topics for cocoa", and "Mac OS X Printing System Overview" I found "Text Layout Programming Guide for Cocoa" especially useful. Good luck. If there is any documentation like you are asking for, I'd be happy to see it also. If you don't get a bet

Re: How to detect curly quotes

2009-04-01 Thread John Engelhart
On Tue, Mar 31, 2009 at 6:21 PM, Steve Cronin wrote: > Folks; > > I'm reading input from a text file (stringWithContentsOfFile) I have no > control over. > Testing is going well until a I encounter a phrase is wrapped in curly > quotes. > (Note phrases wrapped in straight quotes are fine) > > Wit

Re: custom toolbar item autoresizing?

2009-03-31 Thread John Mikros
Thanks for the response! Indeed it works -- there was code later in my - toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar: method that was re-setting the min and max size to the bounds of the view. D'oh! thanks -john On Mar 31, 2009, at 12:36 PM, Peter Ammon wrote: On M

custom toolbar item autoresizing?

2009-03-31 Thread John Mikros
happen, but it does not. Is there some trick to this? thanks -john ___ 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

Re: need advice on subclassing NSScrollVIew

2009-03-20 Thread John Reppy
e view's origin using a double and then adjusting the coordinates before drawing. - John ___ 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 c

need advice on subclassing NSScrollVIew

2009-03-19 Thread John Reppy
e overriding. Also, do I need to override NSClipView too? Any pointers or suggestions would be appreciated. Thanks in advance. - John ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: Performance problem with GC enabled

2009-03-14 Thread John Engelhart
On Fri, Mar 13, 2009 at 11:21 PM, Peter Ammon wrote: > > I think you're saying that it's more convenient for you to work with a > pointer than directly with an array.  If so, another way you can defeat > write barriers is with a cast to void*: > void func(id *ptr) { >    ptr[0] = @"foo"; // <--- w

Re: Performance problem with GC enabled

2009-03-13 Thread John Engelhart
On Fri, Mar 13, 2009 at 8:26 PM, Peter Ammon wrote: > > On Mar 13, 2009, at 4:47 PM, John Engelhart wrote: > >> On Thu, Mar 12, 2009 at 3:17 PM, Peter Ammon wrote: >>> >>> Hi John, >>> >>> Instead of storing each string individually into the

Re: Performance problem with GC enabled

2009-03-13 Thread John Engelhart
On Fri, Mar 13, 2009 at 4:38 AM, Marcel Weiher wrote: > > On Mar 12, 2009, at 10:54 AM, Bill Bumgarner wrote: >> >> In the context of an application, such processing is likely to be on a >> secondary thread and there is likely to be synchronization of data between >> threads. >>  The overhead of t

Re: Performance problem with GC enabled

2009-03-13 Thread John Engelhart
On Fri, Mar 13, 2009 at 5:28 AM, Paul Sanders wrote: > Bill said something in passing on this issue which I think is important.  To > paraphrase: If you care about performance, don't use the Cocoa RegEx stuff > to parse large amounts of data. I disagree :), and I have numbers to back it up: (Reg

Re: Performance problem with GC enabled

2009-03-13 Thread John Engelhart
On Thu, Mar 12, 2009 at 3:17 PM, Peter Ammon wrote: > > Hi John, > > Instead of storing each string individually into the heap, try batching up, > say, 1k or so into a stack allocated buffer.  Then use > objc_memmove_collectable() to move them in bulk into the heap at the

Re: [CA] zPosition + mask + animation = no animation

2009-03-13 Thread John Harper
Hi, This sounds like a framework bug. Please file a bug report so we can make sure it gets fixed (if possible including a test case showing the issue). thanks, John On Mar 13, 2009, at 3:49 AM, Paul Arthur Henrion wrote: Hi list's readers, I'm encountering a weir

Re: Performance problem with GC enabled

2009-03-12 Thread John Engelhart
On Thu, Mar 12, 2009 at 11:39 AM, Bill Bumgarner wrote: > On Mar 12, 2009, at 6:04 AM, John Engelhart wrote: > [ way too many words deleted  ... please try to succinctly state > issues in the future ] > > You have created a micro benchmark that demonstrates a sig

Performance problem with GC enabled

2009-03-12 Thread John Engelhart
I'm sort of at a loss on this one... While working on some improvements to RegexKitLite, I've come across a bit of a problem. I'm in the middle of adding - (NSArray *)arrayOfStringsMatching:(NSString *)regex and friends, a method that (surprise!) returns an array of all the matches of a string fo

Re: persisting user credentials -- how?

2009-03-09 Thread John C. Randolph
On Mar 9, 2009, at 2:32 PM, Stefan Wolfrum wrote: Hi, I have a little app that needs a username & password to log into some web service. These user credentials should be stored permanently so that the user doesn't have to enter them after each start of the application again. What's the m

NSToolbar EXC_BAD_ACCESS after configuration (leopard)

2009-03-06 Thread John Boydon
downloaded from: http://www.savefile.com/files/2029001 (this file will be deleted in 30 days). regards john -- John Boydon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: NSView bottom part is cut off

2009-03-05 Thread John C. Randolph
On Mar 5, 2009, at 9:29 PM, Adam Gerson wrote: I have a view that looks just fine in interface builder. When I display it in a window in my app it cuts off the bottom part of the content. Visual: http://screencast.com/t/YEXgqlAcP What could cause this? Looks to me like you've probably got t

Re: MVC - Model View Control

2009-03-05 Thread John C. Randolph
On Mar 5, 2009, at 5:55 AM, Erik Buck wrote: As an author, I humbly recommend http://my.safaribooksonline.com/9780321591210 . Check out the table of contents. I'll second Eric's recommendation. Also, there's a pretty good conceptual intro to MVC in the Cocoa docs. See file:///Developer

Re: [Q] NSObject's poseAsClass - Replacement?

2009-03-05 Thread John C. Randolph
On Mar 5, 2009, at 12:00 PM, Eric Gorr wrote: On Mar 5, 2009, at 2:47 PM, Benjamin Stiglitz wrote: I have a need to use poseAsClass, but I see that it has been deprecated in 10.5 and won't be available for 64-bit applications. So, is there a replacement? WAYTTD: What are you trying to d

Re: mouseUp event for NSSlider

2009-03-05 Thread John C. Randolph
On Mar 5, 2009, at 1:43 PM, Norio wrote: Hi, Would you give me any suggestions to get the mouseUp event for NSSlider? I've tried to make subclass of NSSlider and override mouseUp: and then put a breakpoint, but the debugger didn't stop at the breakpoint. What's tripping you up there i

Terminating a thread...

2009-03-02 Thread John Cebasek
Any hints on what I might be doing wrong? Thanks in advance for your time John ___ 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

Re: Running Cocoa applications from file servers

2009-03-01 Thread John Joyce
On Feb 25, 2009, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote: On Wed, Feb 25, 2009 at 10:43 AM, Erik Buck wrote: Where did the fetish for installing every single application on the local hard disk come from ? Isn't it insane to have 35 installed copies of OmniGraffle using up

Using new Cookies

2009-02-28 Thread John Joyce
at is best practice in this regard? Is it something so simple as sending a unique user agent string, or is it something else? Regards, John Joyce ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comme

Re: OmniObjectMeter is now free

2009-02-25 Thread John C. Randolph
On Feb 24, 2009, at 8:04 PM, Ken Case wrote: You'll find it at . Thanks, Ken! We also recently posted updated versions of our open source Omni frameworks to github, including OmniDataObjects (our CoreData-like implementation which wo

Re: NSScrollView's content view doesn't un-hide

2009-02-25 Thread John C. Randolph
On Feb 25, 2009, at 4:28 PM, Scott Hamilton wrote: Am I missing something? From your description, you're sending -setNeedsDispay to the the clipview, not to the subviews within the clipview. -jcr ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: Converting .wav files to MP3

2009-02-19 Thread John Murphy
robably can do this. I know you can import .wav files into a podcast project, and then "Send to iTunes" using mp3 compression. Audacity is the standard freeware for audio editing, but I have never used it. Hope this helps. John C Murphy _

Memory Leak, Part I

2009-02-18 Thread John Love
tus]; if (theCalcStatus == kCalculating) { // do stuff } else { // do stuff } } John Love ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comme

Memory Leak, part II

2009-02-18 Thread John Love
elf itsCalcStatus]; // (NSMutableDictionary, 1st key) if (theCalcStatus == kCalculating) { // a 3rd int // do stuff } else { // do stuff } } John Love___ Cocoa-dev mailing list (Cocoa-

Memory Leak, part I

2009-02-18 Thread John Love
[this is part I of a two-part plea for help] I I have read Apple's "ManagingMemory.pdf" and am still having difficulty understanding the use of MallocDebug which is detailed in "MemoryMgmt.pdf". I have 5 methods in the generation of a background thread and I cannot figure out where the mem

Re: What is a CALayer?

2009-02-17 Thread John C. Randolph
On Feb 17, 2009, at 10:40 AM, Gordon Apple wrote: OK, I've said it. WHAT is a CALayer? I'm using a lot of them and appreciate what they can do, but still don't understand them. It's an object that manages an OpenGL surface, its location in 3D space and its place in a hierarchy of layer

Re: System Preferences "halo/spotlight" effect

2009-02-13 Thread John C. Daub
on 2/13/09 10:41 AM, Adam R. Maxwell at amaxw...@mac.com wrote: > On Feb 13, 2009, at 4:51 AM, John C. Daub wrote: > >> I'm trying to replicate that overlay halo/spotlight behavior, in a >> similar sort of window (window full of icons). I'm seeking guidance in >&g

Re: System Preferences "halo/spotlight" effect

2009-02-13 Thread John C. Daub
on 2/13/09 10:26 AM, Kyle Sluder at kyle.slu...@gmail.com wrote: > On Fri, Feb 13, 2009 at 7:51 AM, John C. Daub wrote: >> I'm figuring in System Preferences it's using an overlay window, but since >> my content scrolls I cannot use a window and must use an NSVie

System Preferences "halo/spotlight" effect

2009-02-13 Thread John C. Daub
effect like this so I'm a little lost as to the direction to go. Thank you for your assistance. -- John C. Daub }:-)>= <mailto:h...@hsoi.com> <http://www.hsoi.com/hsoi/blog/> "You can believe you can, or you can believe you can't; either way you will be correct." -

Re: Matching String With ObjectForKey?

2009-02-12 Thread John C. Randolph
On Feb 12, 2009, at 10:45 PM, Chunk 1978 wrote: if ([defaults objectForKey:@"OriginalBackground"] == pathy) .. but they are the same! aren't they?! Nope. You're comparing two addresses, not the contents of the objects at those addresses. Try: if ([[defaults objectForKey:@"Or

Re: memory leak analyzer tools

2009-02-12 Thread John C. Randolph
On Feb 10, 2009, at 11:32 PM, Valentin Dan wrote: Hi, What tools are there to analyze memory leaks in programs ? Is there something that would tell the exact location of the leak (the object that's not being released) ? Try /Developer/Applications/Instruments. It has a template specific

Re: Window Max Zoom Size

2009-02-12 Thread John C. Randolph
On Feb 12, 2009, at 9:42 AM, Anthony Smith wrote: What is the best way to set the max zoom size for NSWindow? I was able to implement a solution by overriding zoom but that feels rather invasive so I'm assuming there's probably a better way. Check the docs for -windowWillResize:toSize:. -

Re: Saving a PDF Selection or converting it to an NSRange and back

2009-02-11 Thread John Calhoun
ns. These you can add to the PDF and save out. Might save you some work since when re-opening the PDF you don't need to re-create the highlights since they're now embedded in the PDF. John Calhoun—___ Cocoa-dev mailing list (Cocoa

Re: -[PDFView drawPage:] and Printing

2009-02-10 Thread John Calhoun
ch visible page. -[PDFView drawPage:] was put in PDFView as a convenience so it can be overriden in a subclass of PDFView. The default implementation of this method calls -[PDFPage drawWithBox:] for the page in question. John Calhoun—___ Cocoa-d

Re: -[PDFView drawPage:] and Printing

2009-02-09 Thread John Calhoun
-[PDFPage drawWithBox:] method to composite your two PDF's. This will in fact kill two birds with one stone. And in fact a third bird ... saving the PDF will save the composited PDF as well. :-) John Calhoun—___ Cocoa-dev mailing list (Cocoa-dev@

Flowing text between text fields

2009-01-31 Thread John Murphy
On many applications, when you enter in a serial number, there are several text fields in a row, and as the user enters in the serial number the cursor automatically jumps to the next text field at the appropriate time. I am assuming that this is a long string being displayed across several text

Printing WebView as a subview

2009-01-30 Thread John Nairn
documentView as it might start anywhere on a page? --- John Nairn GEDitCOM - Genealogy Software for the Macintosh http://www.geditcom.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

RE: Safari-like tabs in my own app?

2009-01-26 Thread john
can see it in action (merged and all) in Pandora: http://www.positivespinmedia.com/shareware/Pandora/ It has since been much improved, and I'm a little out of touch with it - sorry I can't be of more help! John On Mon, 26 Jan 2009 22:17:21 +, Ulai Beekam wrote: >> Check ou

Re: NSTextField line breaking

2009-01-26 Thread John Nairn
methods as setLineBreakMode: John Nairn http://www.geditcom.com Genealogy Software for the Mac ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

NSTextField line breaking

2009-01-26 Thread John Nairn
In a nib file I can set line breaking mode of an NSTextField (e.g., clip, truncate front, middle, end, etc.). But, I cannot find and way to make that setting in a programmatically created NSTextField. I looked through NSTextField, NSTextFieldCell, and NSControl. John Nairn

Configuring a Port-based Input Source -- Part 2

2009-01-26 Thread John Love
go? Should it be sandwiched somehow within –shouldExit,? Is it inserted within the main thread's – handlePortMessage, or is it placed within the above do-while loop? John Love Touch the Future! Teach! P.S. Hope I don't get bumped again for excessive length. ___

Configuring a Port-based Input Source -- Part 1

2009-01-26 Thread John Love
I have this request for help in two parts, because I've been bumped due to length: Reference: "Configuring a Port-Based Input Source" of http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/chapter_6_section_5.html#/ /apple_ref/doc/uid/1057i-CH16-SW7

Re: Getting pixel color from NSView

2009-01-25 Thread John C. Randolph
On Jan 25, 2009, at 11:06 AM, Ashley Perrien wrote: Is there a way to get the color of a pixel or area of an NSView during the drawRect method? Sure. Have a look at this: http://developer.apple.com/samplecode/Color_Sampler/index.html NSReadPixel() will tell you the color of the pixel near

Re: Targeting Tiger

2009-01-25 Thread John Joyce
On Jan 24, 2009, at 8:31 PM, cocoa-dev-requ...@lists.apple.com wrote: Not sure what you mean by "capable of running tiger". If you have a machine capable of running Leopard, it should be able to run tiger. Not true. In general, any Mac requires the latest OS available at the time it

CFHTTP +authentication

2009-01-25 Thread John Michael Zorko
FHTTPMessageCreateRequest() to create the GET request, and CFReadStreamCreateForHTTPRequest() to create a CFReadStream for said request. How do I get the response of the request? Regards, John Falling You - exploring the beauty of voice and s

Re: Targetting Tiger

2009-01-24 Thread John Joyce
Your best bet is to purchase a used Mac that can run Tiger and use it for test builds. There is a huge installed userbase of Tiger still, remember it has been the longest single incarnation of OS X. (as a result of this long life of Tiger, there are lots of affordable used macs that can do

Re: Receiving user events from within an NSTimer callback

2009-01-23 Thread John Mikros
: On Thu, Jan 22, 2009 at 7:34 PM, Quincey Morris wrote: On Jan 22, 2009, at 14:55, John Mikros wrote: I'm working on a Cocoa application which does all of its work within an NSTimer callback that is called regularly. Events are handled normally within a Cocoa run loop. However, ther

Receiving user events from within an NSTimer callback

2009-01-22 Thread John Mikros
IntervalSinceNow:0.1]]; - calling [[NSRunLoop mainRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; - calling CFRunLoopRunInMode() - calling ReceiveNextEvent None of these let me get any events from within my callback. Is there any way for me to do what I need? Thanks

Re: PDFView printing subviews

2009-01-21 Thread John Calhoun
doable to me, just unfortunately more complicated than you would like. John Calhoun—___ 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

Re: ObjC in time-critical parts of the code

2009-01-17 Thread John Engelhart
On Sat, Jan 17, 2009 at 7:44 PM, Scott Ribe wrote: >> TBH (and more to the point) I strongly suspect it's true of everyone >> who's expressed an opinion in this thread that it's not so much about >> the suitability of the language to optimizations, but more about the >> skill set of the individual

Debugging objc_msg errors

2009-01-14 Thread John Nairn
debugging tool that can provide more information about what message was sent to what object at the time of the crash? --- John Nairn GEDitCOM - Genealogy Software for the Macintosh http://www.geditcom.com ___ Cocoa-dev mailing list (Cocoa-dev

<    4   5   6   7   8   9   10   11   12   13   >