Re: NSDrawer

2018-10-01 Thread Phil Marell
that you would need to handle - if the window is at its minimum size, the window would have no choice but to expand itself. I think this is something NSSplitViewController can help with though. Hope that helps, - Phil > On 15 Jul 2018, at 05:00, cocoa-dev-requ...@lists.apple.com wr

Re: Very basic need, very difficult to achieve.

2016-05-03 Thread Phil Stokes
> On 4 May 2016, at 09:18, Graham Cox wrote: > > I could not download 10.9 as the button was greyed out with “downloaded” on > it. Yeah, about that. Whenever you download from the App Store, save a copy of the installer BEFORE you run it. Copy it off onto some removable media device. If

Customising the IKImageBrowserView bezel mode disclosure button

2014-06-26 Thread Phil Barrett
t so it doesn't obscure the image. Notably, IKImageBrowserGroupTitleKey, despite being documented as "This string is used for the disclosure style only" is used as the label on this button. All advice welcome. Thanks Phil ___ Coc

Re: Core Audio Help

2011-12-23 Thread Phil Hystad
So, what web U/I are you talking about that has been down for a month? I was able to go to lists.apple.com earlier today and join the core audio api list. Got my confirmation e-mail and everything. Plus, even received a couple of messages posted to core audio from others. phil On Dec 23

Re: Core Audio Help

2011-12-23 Thread Phil Hystad
Thanks. On Dec 23, 2011, at 10:02 AM, Antonio Nunes wrote: > On 23 Dec 2011, at 18:44, Phil Hystad wrote: > >> Yes, I know of that "promised" book. It seems to have been in the works for >> a long time. I just checked Amazon and it says April 2012. Well, I

Re: Core Audio Help

2011-12-23 Thread Phil Hystad
On Dec 23, 2011, at 12:14 PM, Phil Hystad wrote: > >> I have been reading the Core Audio documentation at the Apple Developer site >> and I am not sure I know any more today then when I started. Are there any >> Core Audio programmers on this list or is there a better spot.

Re: Core Audio Help

2011-12-23 Thread Phil Hystad
wrote: > "Beginning iPhones Game Development" (http://playcontrol.net/iphonegamebook/) > has a few chapters on Core Audio and OpenAL. > > HTH, > > Dave > > On Dec 23, 2011, at 9:44 AM, Phil Hystad wrote: > >> Yes, I know of that "promised"

Re: Core Audio Help

2011-12-23 Thread Phil Hystad
; I have been eagerly waiting for Chris Adamson(sp) book or Core Audio, and my > Amazon order I think is around 2 years old now. I would look for his site and > talks at iDev360 and VTM because he is the best resource I found for > interesting stuff. > On Dec 23, 2011, at 11:14 AM, Phil H

Core Audio Help

2011-12-23 Thread Phil Hystad
where I need to focus my attention. Thanks, phil ___ 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: iPad store ?

2011-09-12 Thread Phil Hystad
Thanks. I will look at that. PEH's iPhone On Sep 12, 2011, at 10:17 AM, Hunter Hillegas wrote: > There's an Enterprise program meant for internal deployments. > > http://developer.apple.com/programs/ios/enterprise/ > > On Sep 12, 2011, at 10:04 AM, Phil Hystad wrot

iPad store ?

2011-09-12 Thread Phil Hystad
p for specific in-house purposes. The app would not be generally available, at least that is the intent. Thanks for any comments or directions to a more suitable list. Phil Sent from my iPad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Initial project shell and handling of window pointer

2011-07-03 Thread Phil Hystad
I am not sure if this is a question for Cocoa-dev or for Xcode. I just started playing around with iOS 4 and Xcode 4. Learning the ropes of the new Xcode I see a difference in how the project templates are used to create a simple Cocoa window app in iOS versus Mac OS X. With iOS, the app deleg

Re: sending a message from an initializer method

2011-01-12 Thread Phil Hystad
You can do the following, in your implementation file create a local procedure and then call it from your init method. I did not bother copying your arguments but you define them in the regular way. -(void)myCalculation { // do the calculation } - (id) init { if ( self = [super init]

Re: Initializing a view controller...

2011-01-10 Thread Phil Hystad
Fritz... Thanks for the pointers to the documentation. I was going to get to reading it if I struck out here. I am really not lazy, just old. phil On Jan 10, 2011, at 8:42 AM, Fritz Anderson wrote: > On 10 Jan 2011, at 9:17 AM, Phil Hystad wrote: > >> Is there a proper way to

Re: Initializing a view controller...

2011-01-10 Thread Phil Hystad
Andreas: Thanks for the information. Now, I should kick myself for picking the name initialize but then maybe I should complain about Apple picking all the best names for methods. I think I have used the -viewDidLoad method before. phil On Jan 10, 2011, at 9:58 AM, Andreas Grosam wrote

Initializing a view controller...

2011-01-10 Thread Phil Hystad
the window made visible). However, I am not sure if this is the Cocoa canonical way of doing things. By the way, this example comes from UIKit but the same question would apply to any OS X Cocoa application too. phil phys...@mac.com ___ Cocoa-dev

Re: Missing ??

2011-01-03 Thread Phil Hystad
you create the project from iOS. I will have to watch that in the future. phil On Jan 3, 2011, at 8:23 PM, Roland King wrote: > Which template are you using to add the object ... > > There's two sets, the ones at the top of the list are for iOS, the ones at > the bottom are f

Re: Missing ??

2011-01-03 Thread Phil Hystad
mucked with) or there is a bug in the template as it came from Apple. phil phys...@mac.com On Jan 3, 2011, at 8:11 PM, Roland King wrote: > ipad? That's iOS and those templated files should include > not , did you pick the wrong file > type from the template. > > On 04-

Missing ??

2011-01-03 Thread Phil Hystad
generated .h,.m files) the build fails with the Cocoa.h file not being found. Obviously something is askew in what I am doing. phil phys...@mac.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Threading and Event Queue Question

2010-08-03 Thread Phil Hystad
n of a guy at work whose answer led me to think that maybe Windows and Cocoa managed their run loops differently. That is why I asked the question. thanks for the comments. On Aug 3, 2010, at 1:59 PM, Nick Zitzmann wrote: > > On Aug 3, 2010, at 2:40 PM, Phil Hystad wrote: > >>

Threading and Event Queue Question

2010-08-03 Thread Phil Hystad
a single process. Is this true or am I barking up a wrong tree? Thanks for your comments phil ___ 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: Memory management on returning nil in init

2010-06-21 Thread Phil Hystad
7;t this instance be released? Alloc already did its > job if we get into init. On the other hand, we shouldn't call release, > because super wasn't initialized. So as of my (maybe limited) understanding > by now, doing the code after [super init] is the way to go. > > >

Re: Memory management on returning nil in init

2010-06-21 Thread Phil Hystad
Does this mean we don't get to find out what the ok variable is all about? If the ok variable has meaning then the code would be much better written as something like: -(id) initWithBool:(BOOL)ok { if ( !ok ) return nil; ...rest of code... } On Jun 21, 2010, at 7:55 AM, Eiko Bleicher

Re: iPhone/iPad: Desktop wallpaper can't be set.

2010-05-20 Thread Phil Hystad
this -- OS X already provides a way for me to set my background, I don't need to buy or use an app to do that. I vote no -- don't do it. phil On May 19, 2010, at 9:08 AM, David Duncan wrote: > On May 19, 2010, at 7:55 AM, sebi wrote: > >> A customer wants an app th

NSString and Regular Expressions

2009-12-14 Thread Phil Hystad
I was sort of suspecting that regular expression matches would be supported by NSString yet I find no message interface for supporting regular expressions. So, is the only capability for handling regular expressions in Objective-C the Posix Regex library? phil phys...@mac.com

File system file renaming question...

2009-12-08 Thread Phil Hystad
This question is not specifically about Cocoa programming but I hope that some Mac OS X experts out there can give me an answer. I sent an attached photo to my daughter so that she could print it out using Costco print services. I sent it at high resolution, the photo image was 1.6 MB. It see

Re: [iPhone] Why so many calls?

2009-10-27 Thread Phil Curry
gged down with 800-900 calls for section header titles and section footer titles. Seems like an incredible waste of effort. Just curious if anyone knows why this happens. If you don't know why, just say so. I happen to live in a world of disturbing imag

[iPhone] Why so many calls?

2009-10-27 Thread Phil Curry
ize, there are: 9 tableView:titleForHeaderInSection: 8 tableView:titleForFooterInSection: 2 numberOfSectionsInTableView: 2 tableView:numberOfRowsInSection: -// I hope we all agree 3 tableView:cellForRowAtIndexPath: --// these make sense But can anyone explain all the other duplicate calls? Waiting

Neophyte Question: Connecting to nib objects

2009-10-19 Thread Phil Hystad
in the nib. I did not know how to get a pointer to that object. It seems that it is serialized (un-archived?) when the nib is loaded. Thanks, phil phys...@mac.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: what is this currency symbol?

2009-07-21 Thread Phil Dokas
On Jul 21, 2009, at 11:53 AM, Andy Lee wrote: ¤ …is the all-purpose "currency sign" in unicode. Its use is to denote that the attached number is a currency value when the appropriate symbol for the locale isn't available. -- Phil Dokas -//- p

Re: Interface Builder Questions...

2009-06-28 Thread Phil Hystad
normal behavior. But, if this is normal, it sure seems to be very awkward which does not seem like IB or Xcode. phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Interface Builder Questions...

2009-06-28 Thread Phil Hystad
view (remember, it is empty, just as created by Xcode), there is an animated image that expands and contracts in size and I have absolutely no idea why it is animated or what it means. Any help? Thanks, InterfaceBuilder newbie phil ___ Cocoa-d

Re: Opinion on managed memory and garbage collection

2009-06-22 Thread Phil Hystad
with 20 years in C++, having to do my own memory management is certainly not a new thing for me. Though, I must admit, I do prefer GC languages and I much prefer Java over C++. phil On Jun 22, 2009, at 8:14 AM, WT wrote: On Jun 22, 2009, at 4:58 PM, Phil Hystad wrote: Being relatively

Opinion on managed memory and garbage collection

2009-06-22 Thread Phil Hystad
tz 2D) oriented and likely also some OpenGL work. Thanks for your opinions and comments. phil ___ 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

Creating table rows from XML

2009-04-20 Thread Phil Dokas
NSObject methods it's fine. And yet, it and its contents have the right retain count. I feel like I must be missing something basic, so any insight would be much appreciated. Thank you! -- Phil Dokas -//- p...@jetless.org ___ Cocoa-dev maili

Re: SSH Tunnel

2009-02-22 Thread Phil
hat may meet your needs, for example: <http://0xbadc0de.be/wiki/libssh:libssh> <http://www.libssh2.org/> Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: best way to do precise timing on iphone?

2009-02-05 Thread Phil
nt should be directed to the developer forums though: <https://devforums.apple.com/> Phil ___ 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: NSWindow With Only Close Button?

2009-01-11 Thread Phil
f Panels, this is discouraged by the Apple HIG ("Title Bar Buttons" subsection): <http://developer.apple.com/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGWindows/chapter_18_section_4.html> Phil ___ Cocoa-dev mailing list (Cocoa-de

NSLog ??

2008-12-19 Thread Phil Hystad
hits. Help needed for snowed in beginning Cocoa programmer. -phil- ___ 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.appl

The Ages Old __MyCompanyName__ Question

2008-12-17 Thread Phil Hystad
aults command from the shell and this seemed to work but no change in behavior on Xcode in spite of cycling Xcode and trying a number of other things. So, How do you change __MyCompanyName__? Thanks, phil phys...@mac.com ___ Cocoa-dev mailing

Re: How to get a list of all known file types?

2008-11-06 Thread Phil
o have some private way of getting this list, however, the list was mostly useless for browsing through due to the inordinate number of UTIs that applications/bundles had declared. Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n

Re: Porting from Windows to Mac

2008-11-01 Thread Phil
makes maintence of the code easier, but doesn't help you much if you already have a large existing codebase written for another framework. Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Storing Instances of a structure in a file

2008-09-21 Thread Phil
On Sun, Sep 21, 2008 at 11:21 PM, Adil Saleem <[EMAIL PROTECTED]> wrote: > I will have to use structs. > Then you will have to write your own code to handle any fields that are pointers to values/objects that exist elsewhere. Phil __

Re: Storing Instances of a structure in a file

2008-09-21 Thread Phil
On Sun, Sep 21, 2008 at 11:09 PM, Adil Saleem <[EMAIL PROTECTED]> wrote: > And what if the fields in structures are instances of Cocoa classes (like > NSNumber etc) ? > Do you have to use structs, or can you wrap them up in an Objective-C class that implements

Re: Storing Instances of a structure in a file

2008-09-21 Thread Phil
r-prone. If there > is anything in Cocoa that can help me, it would be great. > If you're talking about plain-C structs then you can wrap them up in NSValue or NSData instances, which you can then write out with an NSCoder (or if you have lots of th

Re: structs in Mutable containers

2008-09-16 Thread Phil
On Wed, Sep 17, 2008 at 12:41 AM, Phil <[EMAIL PROTECTED]> wrote: > [NSValue valueWithBytes:somePoint objCType:@encode(NSPoint)] > Should be: NSPoint somePoint = NSMakePoint(x,y); [NSValue valueWithBytes:&somePoint objCType:@encode(

Re: structs in Mutable containers

2008-09-16 Thread Phil
this yourself in a category of NSValue. Phil ___ 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/Unsubs

Re: structs in Mutable containers

2008-09-16 Thread Phil
NSValue's for this. Take a read of: <http://developer.apple.com/documentation/Cocoa/Conceptual/NumbersandValues/Articles/Values.html> > Now I need to create a NSMutableArray of CGPoint, how can I make it > became a pointer? > > ... addObject:CGPointMake(x,y)]; > See NSValue's +valueWit

Re: Best 'native' formats for NSImage and NSSound?

2008-09-09 Thread Phil
uartz-dev/2006/Jul/msg00055.html> Where there was a suggestion that you can get much better performance through OpenGL with some Apple extensions: <http://lists.apple.com/archives/quartz-dev/2006/Jul/msg00060.html> Phil ___ Cocoa-dev mailing list

Re: How to create a GUID?

2008-09-08 Thread Phil
used to seed it---I wouldn't recommend depending on this method always returning a UUID incase this changes (even though it probably won't). Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Re: How did I miss this?

2008-09-07 Thread Phil
On Mon, Sep 8, 2008 at 3:23 PM, mmalc crawford <[EMAIL PROTECTED]> wrote: > > On Sep 7, 2008, at 7:01 PM, Phil wrote: > >> The sub-section on "Incorrect Use", also explains that you shouldn't >> use this syntax if it's not on a declared property (and

Re: How did I miss this?

2008-09-07 Thread Phil
this: <http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_2_section_3.html#//apple_ref/doc/uid/TP30001163-CH11-SW17> The sub-section on "Incorrect Use", also explains that you shouldn't use this syn

Re: string convertion: converting getter name to setter

2008-09-04 Thread Phil
ping your own solution unless you know there's a problem with using what's provided by the framework. If you can tell us a bit more about what you're trying to accomplish, we might be able to suggest some better approaches. Phil ___ Cocoa-dev

Re: Accessing SDL Frameworks Bundled with Leopard...

2008-09-04 Thread Phil
. /Library/Frameworks is typically for frameworks shared by installed applications on the system, the frameworks that come bundles with the system are in /System/Library/Frameworks. Something else has probably installed SDL.framework. I would suggest getting your own copy of the SDL fr

Re: string convertion: converting getter name to setter

2008-09-04 Thread Phil
ith C strings: const char *getterName = sel_getName(...) char *getterName_m = strdup(getterName); getterName_m[0] = toupper(getterName_m[0]); // and clean up... Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

Re: string convertion: converting getter name to setter

2008-09-04 Thread Phil
gt; SEL setterSel = NSSelectorFromString(setterName); > > Selector's are case-sensitive, so you'll have to do... setterName = [@"set stringByAppendingString:[getterName capitalizedString]]; Phil ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: string convertion: converting getter name to setter

2008-09-04 Thread Phil
ience in working with strings in objc, and was hoping someone > would point me in the right direction before I start. If you're working in Cocoa (and I assume you are, since this is a cocoa-dev list), this is a good starting point: <http://developer.apple.com/documentation/Cocoa/Conce

Re: Message stack limitations

2008-09-03 Thread Phil
examine the current stack (in terms of frames---more specifically, return addresses) using backtrace(3): <http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/backtrace.3.html> Generally though, if you're hitting the stac

Re: accessing netinfo db from cocoa?

2008-08-31 Thread Phil
tunately this command is not available in the Client version of os x :( > You'll probably be able to get the information you want out of the DirectoryService framework: <http://developer.apple.com/documentation/Networking/Conceptual/Open_Directory/> Phil _

Re: What to use observeValueForKeyPath: context

2008-08-29 Thread Phil
lot faster than comparing to strings. Personally, I wouldn't use arbitary numbers for any pointer value (even a context variable like this), but that's just my stylistic difference. Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Busy doing nothing

2008-08-29 Thread Phil
n the documentation that using -results is "not recommended due to performance and memory issues". My guess is that Spotlight might be keeping something alive for it; you might want to post this on the Spotlight-dev list, that's where the people who

Re: Quitting all active applications

2008-08-28 Thread Phil Faber
un another memory / processor intensive app. I could just quit each one individually but I guess I'm lazy! I'm not suggesting anything more sinister! Thanks to you & everyone for the advice. Phil On 28 Aug 2008, at 12:12, Rob Keniger wrote: On 28/08/2008, at 8:36 PM, Phil F

Re: Creating Interface

2008-08-28 Thread Phil
protocol incorporates the NSObject protocol as well, which enforces all implementors to also conform to the NSObject protocol (and you take an id)---because you don't actually care if you have an NSObject subclass, just that whatever you've

Re: Quitting all active applications

2008-08-28 Thread Phil
On Thu, Aug 28, 2008 at 10:36 PM, Phil Faber <[EMAIL PROTECTED]> wrote: > Is there a simple way to quit all running applications? > > Basically I want to achieve the same result as the first stage of hitting > 'shut down' (closing all applications) without actuall

Quitting all active applications

2008-08-28 Thread Phil Faber
Is there a simple way to quit all running applications? Basically I want to achieve the same result as the first stage of hitting 'shut down' (closing all applications) without actually shutting down the system. Thanks. ___ Cocoa-dev mailing list

Re: File Extensions Problem

2008-08-27 Thread Phil
mplementation details shouldn't influence higher-level design if the contract is well-specified. Although, it's probably unavoidable that it happens---but, you want to make sure that your design doesn't *depend* on an implementation detail that's not specified in the contract. Ph

Re: how to release CFData

2008-08-26 Thread Phil
llowing guide: <http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/> Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderat

Re: 64-bit => Objc 2.0????

2008-08-25 Thread Phil
ectiveC/> <http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_7.html> Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: CFBoolean

2008-08-24 Thread Phil
ntations at: <http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/Articles/XMLPListsConcept.html> I'm curious as to why you need a boolean, rather than just what -setBool:forKey: gives you? Phil ___ Cocoa-dev mailing list (C

Re: Implementing isEqual: and hash

2008-08-23 Thread Phil
d (although a good distribution is nice), just as long as two objects that return YES for -isEqual: return the same value for -hash (the inverse doesn't have to be true). Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: File Extensions Problem

2008-08-22 Thread Phil
umerator. There is no documented exception about the objects that have already been enumerated over, so it shouldn't be assumed that there is one. Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mo

Re: File Extensions Problem

2008-08-22 Thread Phil
look at the UTType.h and UTCoreTypes.h header files. Phil ___ 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.

Re: File Extensions Problem

2008-08-22 Thread Phil
ified, but this behavior is not guaranteed to be supported in the future." Phil ___ 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-ad

Re: Design Question: Pro & Cons of KVC/KVO

2008-08-21 Thread Phil
the trend in Cocoa frameworks as well. Why use NSNotifications when there's already perfectly good notification mechanism? That said, notifications also give you a lot more flexibility about when observers will be called, and coalescence of multiple notifications. Phil ___

Re: Question about directory for Application Caches

2008-08-15 Thread Phil
Also consider the case that the user has a network home directory. If your caches are going to be very large and frequently accessed (off the disk), then there may be some performance penalties. Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: Archiving NSColor as NSData

2008-08-12 Thread Phil
SColor on any output device. It might be able to take short cuts with certain colours or built-in colour spaces---again, just a guess. Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

Re: I don't understand why this is leaking...

2008-08-12 Thread Phil
for backwards compatability. Although, I wouldn't consider this bug much of a reason for not using keyed archiving. Even though NS(Un)Archiver aren't deprecated, they have been "replaced". Phil ___ Cocoa-dev mailing list (Coc

Re: How to get array of characters from NSString

2008-08-08 Thread Phil Faber
ter in question. Phil On 8 Aug 2008, at 05:27, SridharRao M wrote: Hi,I want to retrieve characters from NSString Can any one guide me how to do it. Ex: NSString *ob=@"TEST Object"; Now how to retrieve the "Test Object " valu

simple string to NSData question

2008-08-07 Thread phil swenson
es an NSData. Looking at NSData, I see there is a method initWithBytes but I'm not sure how to put it in there from my NSString. thanks for any help phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin request

[Newbie] Extracting a specific character number from a string

2008-08-06 Thread Phil Faber
simply because I don't know how to code that line. I think it's something to do with how to set the range that I'm getting wrong. Can anyone please advise what than line is supposed to be to pull out the correct character? Thanks. Phil { NSMutableString *pas

Re: Irritating Problem with NSString Method and File Paths

2008-08-03 Thread Phil
mainBundle] bundlePath] stringByAppendingPathComponent:filename] Phil ___ 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: My own listbox

2008-08-02 Thread Phil
w is probably easiest to use for this because it only exposes a single column. Apple has some sample code that may help you with this: <http://developer.apple.com/samplecode/Clock_Control/> <http://developer.apple.com/samplecode/SourceView/> Phil _

Re: Thread safety with background fetching

2008-07-31 Thread Phil
e wrong tree? > Since it doesn't look like you're sharing any ivars or objects between the threads, I don't think you'll need any @synchronized blocks or locking. The only thing I can see you'll want to watch out for is the memo

Re: Detecting platform architecture within Cocoa app?

2008-07-29 Thread Phil
cumentation/Carbon/Reference/Gestalt_Manager/> Phil ___ 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/Un

Re: Authenticate Password.

2008-07-29 Thread Phil
urther work? If you're wanting to peform priveleged operations, you should let Authorization Services handle prompting the user for their password and validating it. Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Re: iCal like calendar interface in my application

2008-07-28 Thread Phil
framework lets you access the calendar data that iCal uses: <http://developer.apple.com/documentation/AppleApplications/Conceptual/CalendarStoreProgGuide/> Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques

Re: unsigning NSNumber

2008-07-26 Thread Phil
anPages/man3/fabs.3.html> Phil ___ 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 Subscript

How to locate coding examples for specified commands [Newbie]

2008-07-26 Thread Phil Faber
Can anyone direct me to an on-line resource that includes examples of how to use specific Cocoa commands? (Are things like - (NSString *)capitalizedString called 'commands' or should I call them something else?) It's often so much easier to understand how it works by seeing an example.

Re: XML serialization and deserialization

2008-07-24 Thread Phil
SKeyedArchiver can, see it's -setOutputFormat: method. Phil ___ 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/

Re: Is checking -count worth it?

2008-07-23 Thread Phil
hink that your first piece of code is far less readable than the second, because I don't find it obvious why you're checking -count first? And as mentioned, measuring performance is the only way to get a true answer as to which method is better. Phil

Re: Obtaining the number of characters in a string

2008-07-20 Thread Phil Faber
ch asks the text *field* for its length (no such method) instead of asking the text field's *string*. Interesting. Although Tim's original suggest did work (so it wasn't 'wrong' as such...) your simpler version also works and seems much neater as it simply ask

Obtaining the number of characters in a string

2008-07-20 Thread Phil Faber
Still struggling with documentation! Simple task. I have two text fields (text1 & text2) and all I'm trying to achieve is to put into text2 a number specifying how many characters there are in the text in text1. I started with: [text2 setStringValue:[text1 stringValue]]; ..just to make s

Re: NOT or NONE in NSPredicate

2008-07-18 Thread Phil
was the last time I checked---10.4) an upper-limit to the length of Spotlight queries. If this list of files is going to get BIG, then you may want to re-consider your approach, or do the filtering after you have the results. Phil ___ Cocoa-dev mailing

Re: how to measure an attributedString or string with attributes

2008-07-16 Thread Phil
ing there are a couple of methods in its AppKit category too: <http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSAttributedString_AppKitAdditions/> (Namely, -size and -boundingRectWithSize:options:) Phil ___

Newbie: How to understand Xcode's documentation

2008-07-15 Thread Phil Faber
or this example, but in general. If I can't understand this, I fear I'll spend most of my time asking others how to achieve the most basic of tasks. Thanks. Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

Re: [NSDate +dateWithNaturalLanguageString] question

2008-07-13 Thread Phil
On Jul 13, 2008, at 2:50 PM, Jens Alfke wrote: On 13 Jul '08, at 10:52 AM, Phil wrote: I'd really like to understand what *common* modern uses there are for non-Gregorian calendars Are you serious? A large fraction of the world's population uses other calendars. Fro

Re: [NSDate +dateWithNaturalLanguageString] question

2008-07-13 Thread Phil
om easy so worthwhile. Thanks, Phil ___ 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/U

Re: Debugging strategy - exceptions

2008-07-09 Thread Phil
Excpetions" and "Controlling a Program's Response to Exceptions". Phil ___ 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-a

Re: controlling system muting ?

2008-07-07 Thread Phil
output volume and alert volume are correct for what they want to hear (although, I have no idea what your application does; but in the general case, messing around with user settings when they don't expect it isn't good). -Phil ___ Cocoa-dev

Re: how to monitor the system status?

2008-03-05 Thread Phil
stem status and provides source code so you can see how it was done. I'm sure there's also some Apple example code that demonstrates aspects of this but I can't recall anything that does it all in one project like MenuMeters. Phil ___ Coc

  1   2   >