edit file

2008-04-25 Thread Christopher
How exactly would I go about replacing the DefaultDesktop.jpg image in core services with a objective c cocoa app. I'm just starting with cocoa, so any help is greatly appreciated. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

NSOperation and lazy loading

2009-09-14 Thread Christopher Drum
ation class, the main() method returns the fetched UIImage to the main thread via "performSelectorOnMainThread:withObject:waitUntilDone:" 3. Some object initializes a Person object, which we'll call "christopher" and requests its image thusly: Person *chr

Re: NSOperation and lazy loading

2009-09-15 Thread Christopher Drum
recommendation, and the pseudocode from Roland just cemented it for me completely. By George, I think I've got it! Christopher ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: NSRunLoop method - configureAsServer alternative in 10.6.1?

2009-09-30 Thread Christopher Kane
It was actually deprecated in 10.5 according to the header, and the 10.5 release notes explain: Deprecated NSRunLoop API The -configureAsServer method is deprecated in 10.5. It never did anything, so there was never a point in calling it in Mac OS X. Since time immemorial the implementa

Submenus - What am I not understanding?

2010-05-06 Thread Christopher Drum
e group for any light that can be shed. Christopher Drum http://development.christopherdrum.com/blog ___ 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 coco

Re: Remove Duplicates in a NSArray

2011-04-10 Thread Christopher Nagel
Could you just add each dictionary to a single dict and then have a globally unique set of keys? This would presuppose you know which value of testKey is the one you wan to retain, and you'd add that one last. Chris On Oct 1, 2008, at 7:29 AM, Rashmi Vyshnavi wrote: Hi All, Is there a

Help finding documentation about printing

2011-07-09 Thread Christopher Henrich
broken. I am eager to read the Printing System Overview. How can I find it? Christopher Henrich chenr...@monmouth.com mathinteract.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t

Re: Help finding documentation about printing

2011-07-11 Thread Christopher Henrich
On Jul 10, 2011, at 12:48 PM, Joel Norvell wrote: > Hi Christopher, > > The documentation set on > > http://developer.apple.com/devcenter/mac/index.action > > has Apple's printing giude. > > The full URL to the printing section is: > > http://develope

Re: UML Diagramming or Other Helpful Software

2009-06-24 Thread Dennis Christopher
Has anyone found a diagramming package that will "reverse engineer" Cocoa code and output a UML diagram from it? Dennis Christopher ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator c

Re: UML Diagramming or Other Helpful Software

2009-06-24 Thread Dennis Christopher
Diagramming or Other Helpful Software To: "Dennis Christopher" Cc: "cocoa-dev@lists.apple.com" Date: Wednesday, 2009 June 24, 10:18 On 2009 Jun 24, at 11:16, Dennis Christopher wrote: Has anyone found a diagramming package that will "reverse engineer" Cocoa code an

NSScrollView

2009-07-11 Thread Christopher Henrich
How Scroll Views Work, I surmise that the scroll view uses the frame rectangle to determine the size of the document view. Have I got this right? Christopher Henrich chenr...@monmouth.com mathinteract.com ___ Cocoa-dev mailing list

NSScrollView question answered

2009-07-21 Thread Christopher Henrich
Thanks to Steve Christensen and Kyle Sluder for their responses to my query. Setting the frame of my view, and letting the NSScrollView do its thing, worked. Christopher Henrich chenr...@monmouth.com mathinteract.com ___ Cocoa-dev mailing list

Re: Adding more and more key/value observers is much too slow - workaround needed.

2009-08-12 Thread Christopher Kane
Don't pass the observer as the context: argument; pretty much anything else is better. Passing NULL (just, for example) flattens the curve quite a bit. If you have nothing better to pass in, put this in your code and pass the address of it: static char _xyzzy_ = 0; Chris Kane Cocoa Fram

Re: Rescheduling an NSTimer from a completion method

2009-08-12 Thread Christopher Kane
On Aug 11, 2009, at 10:28 AM, Fritz Anderson wrote: iPhone OS 3.0 Can an NSTimer be rescheduled after firing, and after another trip through the run loop? I'd like to "reschedule" a NON-repeating timer in my own code. I assume that in the simple case it would be something like: - (void)

Re: NSDateFormatter formats from NSLocale

2009-08-12 Thread Christopher Kane
You can call [[NSLocale currentLocale] localeIdentifier], to get the locale identifier of the user's preferred locale, and then create another NSLocale from it. This will be a locale that doesn't have any (not just formatting) user preference overrides in it but is still the user's preferr

Re: Disabled controls don't update their visual appearance

2009-08-13 Thread Christopher Jensen
Sorry to bump my own post, but I am curious if anyone has any suggestions? Just get in touch if you need to see more code to help me figure out the issue :) Thanks, Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin re

Stuck on programmatic scrolling (scrollToBottom sample code)

2010-08-07 Thread Christopher Corbell
I have a WebKit view which is displaying HTML content from a string. Periodically content can get inserted to the end of the body of the html document, at which time I have the WebView reload. I simply want to make the application programmatically scroll to the bottom of the page when this happen

scrolling content view resizes visibly but bounds and frame don't change

2010-09-09 Thread Christopher Corbell
This one is really bugging me. I have a WebView in a scrolling view and content gets appended to it periodically (new tables appended; the entire content of the WebView is reset each time via loadHTMLString on the mainFrame). VIsually, the webView correctly expands to include new content includin

Re: scrolling content view resizes visibly but bounds and frame don't change

2010-09-11 Thread Christopher Corbell
On Thu, Sep 9, 2010 at 1:24 AM, Quincey Morris wrote: > On Sep 9, 2010, at 00:20, Christopher Corbell wrote: > > > This one is really bugging me. I have a WebView in a scrolling view and > > content gets appended to it periodically (new tables appended; the entire > > c

Perplexity with X3D and XML

2012-08-15 Thread Christopher Henrich
D is good for a lot of other stuff as well, but this is the aspect I am trying to use. Christopher Henrich chenr...@monmouth.com mathinteract.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

Re: Perplexity with X3D and XML

2012-08-16 Thread Christopher Henrich
On Aug 16, 2012, at 12:55 AM, Jens Alfke wrote: > > On Aug 15, 2012, at 7:47 PM, Christopher Henrich > wrote: > >> The specification of the XML form for X3D requires that an MFString be >> enclosed in single quotes, and the enclosed strings must be enclosed in &

Re: Trying to understand -- please help...

2008-05-21 Thread Christopher Nebel
On May 21, 2008, at 10:36 AM, Sherm Pendley wrote: [Objects] are simply released when the autorelease pool they are created in is released - which you can treat as occurring at the end of the method in which the init occurs. Nonsense again. The autorelease pool is emptied at the end of each

Re: How can an object know when another object has gone away?

2008-06-16 Thread Christopher Nebel
On Jun 15, 2008, at 3:53 PM, James W. Walker wrote: On Jun 15, 2008, at 3:25 PM, Andreas Monitzer wrote: On Jun 16, 2008, at 00:20, James W. Walker wrote: Is there a standard Cocoa design pattern or idiom to have an object find out when another object has been destroyed? In PowerPlant, I

Re: [Q] UTF-8 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding weirdness

2008-06-18 Thread Christopher Nebel
On Jun 18, 2008, at 12:24 PM, Ken Thomases wrote: On Jun 18, 2008, at 1:49 PM, JongAm Park wrote: Can anyone tell me why the two different data source are displayed as same "자연", while what it contains are different? I haven't looked into the specific character sequences in-depth, but I s

Re: Getting all subclasses

2008-06-18 Thread Christopher Nebel
That depends on what you mean by "automatically". If you read the documentation, you'll see this bit: "The load message is sent to classes and categories that are both dynamically loaded and statically linked, but only if the newly loaded class or category implements a method that can resp

Building a Setup Assistant

2008-06-28 Thread Christopher Keath
For the life of me, I just don't know where to begin on this seemingly simple project, which is basically my first Xcode project. Quite specifically, I can't seem to figure out how to setup the 'Next' button that would step you thru each stage of the process. All I want to do is collect s

Re: How to converting a Carbon nib to Cocoa?

2008-06-29 Thread Christopher Pavicich
Hi: There is no way to automatically convert a Carbon Interface Builder Document into a Cocoa Interface Builder Document. You are going to need to recreate all of your Carbon dialogues in Cocoa. By hand. --Chris On Jun 29, 2008, at 1:59 AM, Fosse wrote: My Carbon nib contains a lot

Re: NSDateComponents question

2008-07-01 Thread Christopher Kane
On Jul 1, 2008, at 1:08 AM, mmalc crawford wrote: On Jun 30, 2008, at 10:27 AM, Jason Wiggins wrote: Thanks mmalc for your reply. What you say makes sense. So comps is the whole date (now) minus 3 days. I wasn't expecting that. I should've made it clear what I was trying to achieve. I want to

Re: NSNumber Formatter with percent?

2008-07-26 Thread Christopher Kane
On Jul 19, 2008, at 5:13 PM, Todd Heberlein wrote: I was working through Hillegass's latest book and chapter 8 has me applying an NSNumberFormatter to one of the columns of a table view. Unfortunately I get unexpected behavior when I modify one of the values in the column. For example, if I

Re: Cocoa Dev Style: Using Class versus Object Methods

2008-08-11 Thread Christopher Nebel
On Aug 8, 2008, at 8:33 AM, Uli Kusterer wrote: On 08.08.2008, at 07:28, Nick Zitzmann wrote: On Aug 7, 2008, at 11:08 AM, Lee, Frederick wrote: 1) why use instantiated objects versus classes (via class methods)? Because class methods other than +new return autoreleased objects, wh

Re: Problems with ScriptingBridge and iTunes

2008-03-03 Thread Christopher Nebel
On Mar 1, 2008, at 5:28 PM, Hannes Petri wrote: I want to retrieve the path to the currently played file in iTunes. I thought scripting bridge would be the perfect tool for this, however i've run into some problem. I have this code: iTunesApplication *iTunes = [[SBApplication alloc] initW

Re: Localise between different versions of English

2008-03-05 Thread Christopher Nebel
On Mar 4, 2008, at 9:36 PM, Jens Alfke wrote: On 4 Mar '08, at 3:23 PM, Sean McBride wrote: There's also Canadian English (en_CA), and perhaps others too... The ISO is in the process of adding "en_LOL" for Lolcat, aka Kitteh or Cat Pidgin[1]. (If you don't think there's a need for this,

Re: Send an event to another app

2008-03-06 Thread Christopher Nebel
On Mar 5, 2008, at 8:40 PM, Nick Zitzmann wrote: On Mar 5, 2008, at 9:20 PM, Alex Kac wrote: I realize that under OS X things are different and they simply don't work that way. I also know that menus do have a handler and I *assume* that even if a menu is greyed out or a sheet is open (

How do I tell if the mouse button is down, independent of view, etc.?

2008-03-08 Thread Christopher Kempke
I'm working on some code for a client, whose users (handicapped children, mainly) are using non-standard mousing devices. These are (often literally) single-switch input devices: there's no notion of position with them at all, basically just a mouse button sans actual mouse. (On-scree

Re: No track index in iTunes SB?

2008-03-10 Thread Christopher Nebel
On Mar 10, 2008, at 4:56 AM, [EMAIL PROTECTED] wrote: Anyone know how to get the index of the current iTunes track using Scripting Bridge? With Applescript, it's as simple as "tell iTunes to return index of current track", but iTunes SB has no such property (well, there is one, but it only

Re: Mute System

2008-03-12 Thread Christopher Nebel
On Mar 12, 2008, at 12:23 PM, I. Savant wrote: On Wed, Mar 12, 2008 at 2:49 PM, Herr Thomas Bartelmess <[EMAIL PROTECTED] > wrote: Hi everyone, does somebody know, what i have to do to control the system Aduio Volume (mute, increase, decrease). I searched a lot, but without result A quick

Re: ScriptingBridgeConcepts problem

2008-03-17 Thread Christopher Nebel
On Mar 15, 2008, at 2:53 AM, Cocoa wrote: I am reading the Scripting Bridge Concepts.pdf, when I doing this in the terminal i got a error >sdef /Applications/Mail.app | sdp -fh --basename Mail ( what I type in the Terminal) >sdp: unknown type name "OLD message editor". (computer respons

Re: Sorting arrays with strings

2008-03-17 Thread Christopher Nebel
On Mar 15, 2008, at 6:34 AM, I. Savant wrote: is there a way to make an array with objects such as text-12. txt, text-3.txt, text6.txt, text654.txt be sorted like text-3.txt, text-12.txt, text6.txt, text654.txt If you understand what I mean. http://developer.apple.com/qa/qa2004/qa1159.html

Re: Using C++ classes from Objective C

2008-03-20 Thread Christopher Nebel
On Mar 20, 2008, at 10:32 AM, Rob Napier wrote: Say you have a C++ object called MyObject in the namespace myapp that you want to access through your ObjC. What I tend to do is create an ObjC++ object called MyObjectWrapper that owns a myapp::MyObject and presents a pure ObjC interface to i

Textview is overwriting itself

2008-03-21 Thread Christopher Woodruff
I used a textview to work as an automatically scrolling log window for a real time data output feed. I limit the size of the textstorage programmatically. When I fill the textstorage to my programmatic size limit (currently is 16384 characters), the textview overwrites itself momentarily.

Re: NSUInteger question

2008-04-08 Thread Christopher Nebel
On Apr 8, 2008, at 5:30 PM, Timothy Reaves wrote: What advantage does NSUinteger have over uint32? I realize that on a 64 bit machine, it would be a uint64. "Advantage"? None, really. It's a question of what you're trying to express -- do you want specifically a 32-bit unsigned integer,

Re: NSUInteger question

2008-04-09 Thread Christopher Nebel
On Apr 9, 2008, at 9:30 AM, Corbin Dunn wrote: On Apr 8, 2008, at 5:30 PM, Timothy Reaves wrote: What advantage does NSUinteger have over uint32? I realize that on a 64 bit machine, it would be a uint64. I think everyone is missing the point. The advantage is not "None". I didn't mean t

Re: "hooking" into another app

2008-04-14 Thread Christopher Nebel
On Apr 14, 2008, at 8:24 AM, Oliver Quas wrote: Am 14.04.2008 um 16:58 schrieb Florian Soenens: on 4/14/08 8:26 AM, [EMAIL PROTECTED] purportedly said: Re-read my message. If it was unclear, what I want to do is be able to log (record) text being written to a chat window from another

Re: "hooking" into another app

2008-04-15 Thread Christopher Nebel
On Apr 15, 2008, at 3:20 PM, Ricky Sharp wrote: On Apr 15, 2008, at 5:13 PM, Jens Alfke wrote: On 15 Apr '08, at 3:07 PM, Don Arnel wrote: Actually, after playing around with the Accessibility API I've found that changing the layout of UI elements won't adversely affect the external app's

Uniform Type Indicators

2008-04-24 Thread Christopher Henrich
Have Uniform Type Indicators (UTIs) been defined for VRML, X3d, of POVray files? Thanks in advance, Christopher Henrich [EMAIL PROTECTED] mathinteract.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Authorization

2008-04-24 Thread Christopher Crawford
I'm just starting out with Objective-C and cocoa and OS X development. I'm trying to build a simple app that changes the login screen background, I have everything right but I have no idea how i can authorize the NSFileManager to move a file in the CoreServices folder. I've looked online fo

Re: Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?

2008-04-28 Thread Christopher Nebel
On Apr 28, 2008, at 10:24 AM, Mohsan Khan wrote: 2008-04-28 19:16:46.910 MyApp[945:10b] Error loading /Library/ ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/ Contents/MacOS/Adobe Unit Types, 262): no suitab

Re: Is there any compression library for Cocoa?

2008-04-30 Thread Christopher Nebel
On Apr 30, 2008, at 4:40 AM, Trygve Inda wrote: On 30 Apr 2008, at 12:35, Trygve Inda wrote: So why the need for + dataWithBytesNoCopy:length:freeWhenDone: ? It would seem that if freeWhenDone is YES, these are identical calls? Because sometimes you might want to use NO. i.e maybe its a n

Re: Graphics seen when volume is modified.

2008-05-02 Thread Christopher Nebel
On May 2, 2008, at 4:00 AM, I. Savant wrote: Any info about the box or code that emulates this would be useful, There's no public API, but there's this: http://growl.info/documentation/developer/ Alternatively, you could mimic the effect using a transparent panel [1] -- I expect that's w

Newbie Question: Controls not redrawing on changes

2008-05-03 Thread Christopher Kempke
g" some event the system needed, but no go. I don't have mouseAnything: handlers on the checkboxes; in fact, I'm not even subclassing them. I'm guessing I've missed a step, something that provides the context flush and the throb heartbeat. Anyone care to take pit

Re: Newbie Question: Controls not redrawing on changes

2008-05-03 Thread Christopher Kempke
doesn't even turn blue. --Christopher Kempke On May 3, 2008, at 3:10 PM, Nathan Kinsinger wrote: On May 3, 2008, at 3:42 PM, Christopher Kempke wrote: Then I draw the window with: [iWindow makeKeyAndOrderFront:nil]; And run it as a modal dialog with: [

Re: Newbie Question: Controls not redrawing on changes

2008-05-04 Thread Christopher Kempke
ckbox should keep toggling the value of the checkbox and updating the screen, right? I don't have to do anything special to turn this on, or implement the drawing myself? --Christopher Kempke On May 3, 2008, at 8:47 PM, Kyle Sluder wrote: On Sat, May 3, 2008 at 7:08 PM, Christopher Kempke <

Re: Newbie Question: Controls not redrawing on changes

2008-05-04 Thread Christopher Kempke
addSubview:ctl]; [aWindow makeKeyAndOrderFront:nil]; [NSApp run]; return 0; } Clearly I'm missing something critical here (and "artistic talent" isn't what I'm looking for). What important step am I missing to make the event loop handle the drawing of my win

Re: Newbie Question: Controls not redrawing on changes

2008-05-04 Thread Christopher Kempke
Bah, yes, I missed Michael Ash's correct answer at the end of yesterday's digest.Setting the window backing store to "buffered" fixed the control drawing and even a coupe of other interface issues I hadn't realized were related. Thanks to everyone for your he

Re: Passing argument with different width due to prototype: warning

2008-05-13 Thread Christopher Nebel
On May 13, 2008, at 6:10 PM, R.L. Grigg wrote: Im using Xcode 3.0 and building a Foundation Tool (debug, PPC). The base SDK path is $(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk and Ive included Foundation.framework in the project under "External Frameworks and Libraries". There is a line of my cod

NSSpeechRecognizer and Speech Recognition calibration

2008-12-26 Thread Christopher Corbell
I'm working on an accessibility app for the visually impaired and was hoping to use NSSpeechRecognizer. I've found it extremely difficult to get NSSpeechRecognizer to behave predictably on my system. Does anyone on the list have experience with this class & success with the Speech Recognition sys

CALayer removeFromSupeLayer crashes

2009-01-09 Thread Dennis Christopher
could be wrong with this. Any suggestions would be appreciated. (I've read through most of Dudney's Core Animation book but nothing jumps out at me.) Dennis Christopher ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n

Re: CALayer removeFromSupeLayer crashes

2009-01-12 Thread Dennis Christopher
setSublayers:] CALayerUpdateSublayers updateRemovedSublayer CALayerMarkVisible . . objc_msgSend (EXC_BAD_ACCESS) Can you suggest what might be wrong? Dennis Christopher On Jan 10, 2009, at 12:43 PM, David Duncan wrote: On Jan 9, 2009, at 12:19 PM, Dennis Christopher wrote: NSArray *theLayers = [[self

Re: CALayer removeFromSupeLayer crashes

2009-01-13 Thread Dennis Christopher
he parent layer, you can still access it. On the other side of that, though, you will need to explicitly release the object when you are done. Best regards, -Matt On Jan 12, 2009, at 1:57 PM, Dennis Christopher wrote: Dave, Thanks for the pointer. I had corrected the original array enumera

Re: CALayer removeFromSupeLayer crashes

2009-01-19 Thread Dennis Christopher
Men, I was to find an over-release of the layer's delegate object using Instruments. Removing this solved the crash. Thanks for all your suggestions. Dennis Christopher On Jan 10, 2009, at 12:43 PM, David Duncan wrote: On Jan 9, 2009, at 12:19 PM, Dennis Christopher wrote: NS

Elements of Garageband Tutor window?

2009-02-16 Thread Christopher Nagel
Hey y'all - I've been away from Cocoa for a few years (doing telecom frameworks), and I'm amazed at how sweet the tools have become! Awesome! So - as a retread-newbie, what do I need to know to develop an application like Garage Band's tutorial I/F (example here: http://www.apple.com/ilife

Source code for Chess?

2009-02-21 Thread Christopher Nagel
Anyone have a copy of the old Chess example? I forgot its source was discontinued. Thanks, Chris ___ 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

Re: Source code for Chess?

2009-02-21 Thread Christopher Nagel
Yeah, Chess used to be shipped in /Developer/Examples and that's what was discontinued. Thanks for the reminder about opensource.apple.com. Chris On Feb 21, 2009, at 11:14 AM, Jean-Daniel Dupas wrote: Le 21 févr. 09 à 16:00, Christopher Nagel a écrit : Anyone have a copy of the old

Re: Porting from Windows to Mac

2008-10-30 Thread Christopher Hickman
>***DO NOT*** expect that it's merely a matter of finding the corresponding >Mac API call for each Windows API call--the differences run deeper than >that. In order to be successful, you ***WILL*** have to learn to be a Mac >developer, period, no shortcuts. Don't let that scare you. It's easier t

Re: Programatically Change NSMenu Title

2008-11-04 Thread Christopher Hickman
On Tuesday, November 04, 2008, at 03:02PM, "Chunk 1978" <[EMAIL PROTECTED]> wrote: >for localization purposes, i'd like to programatically change all of >my app's menu item titles. Generally, you'd accomplish that with localized nibs instead of doing it proramatically. Is there some reason why t

Re: Programatically Change NSMenu Title

2008-11-04 Thread Christopher Hickman
On Tuesday, November 04, 2008, at 04:44PM, "Chunk 1978" <[EMAIL PROTECTED]> wrote: >i just found it a lot easier to edit the localizable.strings file than >change the menu items in the nib file... i mean, if i had a program >that is localized in 20 different languages, it would certainly be >easie

Quicktime Movie View error

2008-11-10 Thread Christopher Kempke
I'm trying to create a very, very simple QuickTime viewer in Cocoa. I create a new Application, add QTKit and Quicktime frameworks, and drag a QuickTime Movie View into the main window.All is well if I run now (although the movie view is blank). Going back into Interface Builder, I sele

Re: Date parsing problem (when running on iphone only)

2009-03-04 Thread Christopher Kane
On Mar 4, 2009, at 4:22 AM, Jacob Rhoden wrote: On 4/3/09 10:15 PM, Jacob Rhoden wrote: Anyone experience this weird behaviour with date parsing? Given the following code, it produces a different log output when running in the simulator or on the iPhone!!! NSString* test = @"Monday 26 J

Re: Need localization-proof method of transporting dates.

2009-04-07 Thread Christopher Kane
Now that everybody else has had their say, I'll throw in my two bits: ;-) * as others have pointed out, never store the hash of an object or data computed from the hash, nor transmit the hash of an object outside a process, if your goal is to compare it in any way with anything else (for

Conversation-style controls?

2009-04-24 Thread Christopher Gillis
How would I go about attaining a conversation-style layout. Tweetie ( http://www.atebits.com/tweetie-mac/ ) is a perfect example of the layout I would like to achieve. I can get something similar by subclassing NSTableView but it seems to me like it's a convoluted approach to what should be a simpl

Re: Re: Special requirements for the window param of NSAlert beginSheetModalForWindow?

2009-05-13 Thread Dennis Christopher
alert case. Or the secondary alert appearing twice. I guess I dont understand what counts as the first sheet being dismissed. I would have thought that the didEnd selector being called was sufficient?? Dennis Christopher On May 12, 2009, at 1:01 PM, cocoa-dev-requ...@lists.apple.com wrote

LMSetKey[Rep]Thresh

2009-05-14 Thread Christopher Hansen
Thank you, Christopher ___ 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 Subscrip

Re: LMSetKey[Rep]Thresh

2009-05-17 Thread Christopher Hansen
which separates the rendering layer from the application/event handling layer -- to use Cocoa for my rendering. Christopher From: Sean McBride To: Christopher Hansen ; Cocoa-dev@lists.apple.com Sent: Sunday, May 17, 2009 9:40:29 PM Subject: Re: LMSetKey[Rep]Thre

Re: LMSetKey[Rep]Thresh

2009-05-18 Thread Christopher Hansen
#x27;m the only one on the team currently that has Mac OS programming experience. This approach makes a lot of sense to me. Thank you, Christopher From: Chris Hanson To: Christopher Hansen Cc: Cocoa-dev@lists.apple.com Sent: Monday, May 18, 2009 2:04:27 AM S

NSEvent virtual keycodes

2009-05-18 Thread Christopher Hansen
27;ve been able to find are in Carbon/HIToolbox/Events.h. Thanks, Christopher ___ 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)

Re: NSEvent virtual keycodes

2009-05-18 Thread Christopher Hansen
Lol! In the process of moving from Carbon to Cocoa, I ripped out the Carbon.framework. I just thought there might be a better place to include them from. Thanks, Jim. Christopher From: Jim Correia To: Cocoa-dev@lists.apple.com Sent: Monday, May 18, 2009 9

Cocoa event handling in fullscreen

2009-05-19 Thread Christopher Hansen
fullscreen-only game, I'm not sure it's the right thing to do. Any help would be appreciated. Thanks, Christopher ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: Cocoa event handling in fullscreen

2009-05-19 Thread Christopher Hansen
fullscreen. Christopher From: Alexander Spohr To: Christopher Hansen Cc: cocoa-dev@lists.apple.com Sent: Tuesday, May 19, 2009 3:00:20 PM Subject: Re: Cocoa event handling in fullscreen Christopher, you could use an NSView subclass going into fullscreen

Re: Cocoa event handling in fullscreen

2009-05-19 Thread Christopher Hansen
Thanks, Douglas. That helps. Christopher From: douglas welton To: Christopher Hansen Cc: Alexander Spohr ; cocoa-dev@lists.apple.com Sent: Tuesday, May 19, 2009 5:59:33 PM Subject: Re: Cocoa event handling in fullscreen Nothing stops you from starting up in

CAShapeLayer for Drawing Lines; Animations Skewed

2009-09-10 Thread Christopher J Kemsley
Hi all, In my current development project, I have numerous dots that will be moved around periodically, each connected by a line. The dots are represented as CALayers, with the "contents" set to a simple 20x20 dot, and they are moved around by animating the "position" property. The conn

CALayer renderInContext not rendering all sublayers

2009-09-13 Thread Christopher J Kemsley
tureMe.app, the view as displayed on screen. I put that video, the video produced by the code as well as the CARecorder code online here: http://www.kd7qis.com/CARecorder_Help Please take a look. I'd greatly appreciate any help anyone could p

Re: singleton pattern in cocoa

2009-09-14 Thread Christopher J Kemsley
About the only thing that I'd recommend is that the "static" be inside the +sharedSingleton method so that you aren't able to take the cheap- way-out and call that variable directly in other class methods before it's created. For the rest of it: it seems to follow Apple's patterns - for in

CARenderer Example

2009-09-21 Thread Christopher J Kemsley
Hi all, I've been trying to make a class to record CALayers and their animations to QuickTime movies. I've only found two ways to do this: Poll and renderInContext I can have a timer running at some rate, and I use that to tell the layer's presentationLayer renderInContext:(someBitmapCon

CAKeyframeAnimation for 'position' not working

2009-10-01 Thread Christopher J Kemsley
(Note: I apologize for not having this nicely formatted. My previous message - 8kB over the size limit - was rejected because it was too large, so I had to remove the extra HTML) I have a CAKeyframeAnimation that simply will not work. I have a layer. When I apply a CABasicAnimation to it, i

Re: CAKeyframeAnimation for 'position' not working

2009-10-01 Thread Christopher J Kemsley
last object being set as exactly 0 and 1, but still nothing happens... On 1 Oct 2009, at 3:05 PM, David Duncan wrote: On Oct 1, 2009, at 2:45 PM, Christopher J Kemsley wrote: The output, from the print statements, to show that it has VALID values, is: 2009-10-01 13:11:00.887 Whose

Re: View shifted up on iPhone simulator

2009-10-02 Thread Christopher J Kemsley
Hmm I have a few comments: It look like you're seeing the superposition of two problems that look like one: 1) The status bar is covering up the very top of your view in the sim 2) The bottom button is 20px further from the bottom in the sim The interface builder likes to make views defaul

Networking

2009-07-13 Thread Christopher J Kemsley
I'm not sure how to begin this, so I'll start off with what I have. What I have: Device A and Device B. Device A is connected to the internet (at address The Address, and has port The Port routed to it for instance) Device B is also connected to the internet, but is not on the same loca

spaghetti code with core data and multiple views

2009-07-13 Thread Christopher Campbell Jensen
Hi, I am busy writing my first app using objective-c, cocoa, xcode, etc. It is basically an app that will allow the user to compile meta data from several sources, select the bits he wants, and then write that meta data to the movie file. Think MetaX with more sources. My main overall probl

NSSocketPort initRemoteWithTCPPort is never valid

2009-07-13 Thread Christopher J Kemsley
roven to be almost completely futile... - Christopher ___ 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/Uns

Re: spaghetti code with core data and multiple views

2009-07-14 Thread Christopher Campbell Jensen
On 14 Jul 2009, at 09:11, cocoa-dev-requ...@lists.apple.com wrote: In terms of the app delegate, window controllers and view controllers, it sounds like you've done things perfectly for your given user interface design. In terms of the "narrowed down" set of data, you haven't quite thought you

Re: spaghetti code with core data and multiple views

2009-07-14 Thread Christopher Campbell Jensen
In addition to the previous post from Mr Quincey Morris, I received the following from Aaron: Hi Chris, I'm having troubles posting to the list so this is a private response, but feel free to use any of this email on-list if you want to. I haven't read your entire email, but the impress

Looking for a method to Lock and Unlock the computer

2009-07-29 Thread Christopher J Kemsley
Hi all, I'm looking to write a program to run in the background and do the following: • Listen for Event A • If Event A occurs, either Sleep Display or Display Login Screen • Listen for Event B • If Event B occurs, log-in to a specific account Listening for the event is not a problem. How

Design Paterns: +/- Initializers and Subclassing

2009-08-02 Thread Christopher J Kemsley
utorelease]) Thanks, -Christopher ___ 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 Subscrip

Re: Design Paterns: +/- Initializers and Subclassing (Solved)

2009-08-03 Thread Christopher J Kemsley
Oh yeah - I thought I did that once and it didn't work... Though, now that I think about it, I think I did it the other way in the past (used self in a +method to refer to a newly created object) So, in all reality, the +method could be boiled down to: [self.new autorelease] ; since self.

Disabled controls don't update their visual appearance

2009-08-10 Thread Christopher Campbell Jensen
Hi, I am sure I am just missing a single line of code, but I can't understand the following behavior: This code is where the issue occours: - (void)refreshButtonsEnabledState { NSLog(@"%d", [[[tabView selectedTabViewItem] label] isEqualToString:@"Current/Custom"] && [movieFile.movieMetaData

Re: Disabled controls don't update their visual appearance

2009-08-11 Thread Christopher Campbell Jensen
On 11 Aug 2009, at 08:00, Uli Kusterer wrote: On Aug 10, 2009, at 6:04 PM, Christopher Campbell Jensen wrote: I am sure I am just missing a single line of code, but I can't understand the following behavior: This code is where the issue occours: - (void)refreshButtonsEnabledState {

Re: Disabled controls don't update their visual appearance

2009-08-15 Thread Christopher Campbell Jensen
2009, at 06:45, Uli Kusterer wrote: On Aug 11, 2009, at 5:45 PM, Christopher Campbell Jensen wrote: To check when/if any of them were nil, I set a breakpoint and stepped through the code pausing it each time "refreshButtonsEnabledState" was called and it made me realise that the

bound popup cell not letting me set it's value

2009-08-19 Thread Christopher Campbell Jensen
Hi, I have made a short screen recording of my issue: http://www.flickr.com/photos/christophercjensen/3837784580/ As you might notice, I have an NSDictionaryController MetaData which has it's contents set to an NSMutableDictionary metadata. My window has a NSTableview with two columns: Column

Re: bound popup cell not letting me set it's value

2009-08-20 Thread Christopher Campbell Jensen
Bind the pop up cell's "selectedValue" binding to a string representing the current name, or bind its "selectedIndex" binding to a number that represents the index of the current name. This was the step I had missed, I hadn't bound any of the "selected" bindings. I tried looking in the class d

QuickTime Animation Rendering

2009-08-25 Thread Christopher J Kemsley
acceptable to write to file then play the file on screen. Note that I am going more for simplicity of code rather than speed performance, as the on-screen viewing will ONLY be for 'previewing' the output. All "publications" of the animations will be in the form of a Qu

  1   2   >