Re: self = [super init], nil?

2010-05-08 Thread jeremy
On May 7, 2010, at 2:34 PM, Patrick M. Rutkowski wrote: > it worth checking for nil after doing self = [super init]? Yes. It's part of a design pattern, which looks like this: --- - (id)init { if (self = [super init]) { } return self; } --- See "Constraints and Conventions". http

Re: How to specify the superview in the Interface Builder?

2010-06-04 Thread jeremy
Would you provide some additional information: 1) Is the IB designed custom view in MainWindow.xib or is it in its own nib file? 2) Did you create a custom view controller class to manage the screen full of content shown in the custom view? On Jun 4, 2010, at 12:53 PM, ico wrote: > I have cr

Re: Core data: Inverse relationships with subclasses

2010-09-29 Thread jeremy
If your data store is SQLite, I believe the problem is the subclass FooSub. Since FooSub is a subclass of Foo, CoreData combines both Foo and FooSub into a single table whose columns include all properties from Foo AND FooSub. Consequently, when you create a new instance of Foo, columns from Foo

RESTful API's - Easy way to interact?

2008-05-30 Thread Jeremy
to use set GET, but I think that is working. The problem and it is crashing is because it is being encoded by every other method. Here is an example in "pseudo code": 'Basic ' + Base64.encode(username + ':' + password) Hopefully someone will be able to help, Jeremy

Re: RESTful API's - Easy way to interact?

2008-05-31 Thread Jeremy
Jens, Thanks for that bit. And I am a native english speaker. It was late when I typed that. :D But Thanks for NSURLConnection suggestion and will look into it. Jeremy "I have often felt that programming is an art form, whose real value can only be appreciated by another versed i

Re: RESTful API's - Easy way to interact?

2008-06-04 Thread Jeremy
Actually, After reading more about the RESTful API that they are using, it looks like it requires Base64. Is there any C library that is free to use and allows this functionality? Jeremy "I have often felt that programming is an art form, whose real value can only be appreciat

Re: RESTful API's - Easy way to interact?

2008-06-04 Thread Jeremy
Joseph, I have downloaded and used those files (hopefully can get them to work) but upon build (not using them yet) I get this error: for( int i=0; iX /Users/Jeremy/Documents/Apps/Unfuddler2/Base64.m:101: error: 'for' loop initial declaration used outsid

SSDP / UPNP

2008-08-22 Thread Jeremy
Hi. I am working on a project where I need to access a UPNP device on a local network. What is the best way to discover this device using SSDP and then interact with it (shared directory on the device)? Thanks in advance. -Jeremy ___ Cocoa-dev

User Defaults Controller - IB

2008-03-18 Thread Jeremy
very helpful because it is all using custom classes. Help please. :D Jeremy Dentel "For a long time it puzzled me how something so expensive, so leading edge, could be so useless, and then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart thin

Using C++ classes from Objective C

2008-03-19 Thread Jeremy
; const unsigned int nRes = m_pMemberVariable->MyFunc(); The second line gets the error. The new allocation in the first line seems to compile fine. Do I need to create some sort of bridge class or method? Thanks, Jeremy ___ Cocoa-dev

Re: Using C++ classes from Objective C

2008-03-19 Thread Jeremy
Yes, I am. I have tried using both #include and #import, but neither seems to work. On Mar 19, 2008, at 4:22 PM, John Stiles wrote: Are you #including the header which declares MyClass? Jeremy wrote: Hi. I am just starting to learn Cocoa and would like to use standard C+ + classes from

Re: Using C++ classes from Objective C

2008-03-20 Thread Jeremy
te: On Wed, Mar 19, 2008 at 4:12 PM, Jeremy <[EMAIL PROTECTED]> wrote: Hi. I am just starting to learn Cocoa and would like to use standard C ++ classes from my Objective C/C++ classes. You really don't. You think you do (probably because you know C++), but then you enter the crazy

Re: Using C++ classes from Objective C

2008-03-20 Thread Jeremy
here, ObjC++, RubyCocoa, etc are all useful tools for helping people who already understand ObjC. -Rob On Thu, Mar 20, 2008 at 12:40 PM, Jeremy <[EMAIL PROTECTED]> wrote: Thanks for the input guys, I really appreciate the help. I do have a lot of C++ code that I would like to use and put

HTTP Headers

2008-05-03 Thread Jeremy
Hello, Is there an easy way within Obj-C to read HTTP headers, to write HTTP headers, and to send HTTP headers? As this will be the easiest way for me to authenticate for an XML API I am using, and to read http status codes (if the action was completed - or the error). Jeremy "For a

Re: HTTP Headers

2008-05-03 Thread Jeremy
So... Using [NSURLRequest HTTPBody]; will return what is returned. I don't see any way to build and send HTTP headers. Jeremy "For a long time it puzzled me how something so expensive, so leading edge, could be so useless, and then it occurred to me that a computer is a stup

Clearing an NSTextView

2008-02-24 Thread Jeremy
sing insertText? Thanks, Jeremy "For a long time it puzzled me how something so expensive, so leading edge, could be so useless, and then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people wi

Re: Clearing an NSTextView

2008-02-24 Thread Jeremy
I.S., I knew insertText: wouldn't remove the text. I just can't figure out how to remove it all. And how do I select all of characters? That would be my only problem with the replaceCharactersInRange:withString:... Thanks, Jeremy "For a long time it puzzled me how somethi

Re: Clearing an NSTextView

2008-02-24 Thread Jeremy
IS, Thanks for the setString:. I believe I tried that before and it didn't work. It is now working as intended. Jeremy "For a long time it puzzled me how something so expensive, so leading edge, could be so useless, and then it occurred to me that a computer is a stupid machin

Re: Clearing an NSTextView

2008-02-24 Thread Jeremy
Personally, I didn't get an e-mail from Gary on this subject. I'm sure one was sent but I only have e-mails from you IS... Jeremy "For a long time it puzzled me how something so expensive, so leading edge, could be so useless, and then it occurred to me that a computer is a

Chaging NSStatusItem menus.

2008-02-25 Thread Jeremy
Hello, How can I switch menus for an NSStatusItem programatically? So if the user chooses to "quit" the application from the NSStatusItem I can switch it's menu to be another menu with launch options. Thanks, Jeremy "For a long time it puzzled me how something so e

Re: Chaging NSStatusItem menus.

2008-02-25 Thread Jeremy
work. So I'm stuck here. And that was the ONLY method I have tried. Jeremy "For a long time it puzzled me how something so expensive, so leading edge, could be so useless, and then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart thin

Re: Chaging NSStatusItem menus.

2008-02-25 Thread Jeremy
" action:@selector(beginWatching:) keyEquivalent:@""]; [barItem setTitle:@"Start iTunes"]; //[barItem setAction:@selector(beginWatching:)]; [barItem setMenu:iTunesQuit]; //[[NSApplication sharedApplication] terminate:self]; } Thanks, Jeremy &q

Re: Chaging NSStatusItem menus.

2008-02-25 Thread Jeremy
I.S., I use barItem extensively. But after "Quitting iTunes" and leaving it be for a while, I clicked it and it did go to the other menu. But it wasn't instantaneous and it seems to be stalling after a while. Also, how can I set it so that instead of text it is a 16x16 image

Re: Chaging NSStatusItem menus.

2008-02-25 Thread Jeremy
Hey, I think I figured out why my change isn't instantaneous like I was complaining before. I have a subclassed menuWillOpen: which updates my data upon open. Maybe I need to rework my code. Is there any if statement that could get me around this code problem? Thanks, Jeremy "

Fwd: Chaging NSStatusItem menus.

2008-02-26 Thread Jeremy
Here's my approach and most of my code (since it has to be "under 25 kb"): - (void)menuWillOpen:(NSMenu *)menu { if([iTunes isRunning]) { if([[[iTunes currentTrack] artist] isEqualToString:@""]) { [one setTitle:@"Artist: N/

NSTableView

2008-02-28 Thread Jeremy
Hello, I am trying to figure NSTableViews out. I have two table views inside of my window. The code I have is completely useless and not working. Can anyone explain how to populate an NSTableView using arrays? If you could that would be greatly appreciated. Jeremy "For a long ti

Re: NSTableView

2008-02-28 Thread Jeremy
Column row:(int)row { return [categoriesArray objectAtIndex:row]; } The NSTableView is not being populated at all... No rows, and nothing else.... Jeremy "For a long time it puzzled me how something so expensive, so leading edge, could be so useless, and then it occurred to me that a

Re: NSTableView

2008-02-28 Thread Jeremy
Thanks about the memory leaks and about the allocating memory and stuff. And I thought that might be my problem but I am not sure how to actually use that method. The documentation was very vague in my opinion. Jeremy "For a long time it puzzled me how something so expensive, so le

Re: NSTableView

2008-02-28 Thread Jeremy
ike a copy of my project just send me a direct e-mail and I will send it. Jeremy "For a long time it puzzled me how something so expensive, so leading edge, could be so useless, and then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart thing

Re: NSTableView

2008-02-29 Thread Jeremy
John, I guess I forgot to send an e-mail saying Andrew Merenbach helped me out on this one. He found a small error in my code. :) Jeremy "For a long time it puzzled me how something so expensive, so leading edge, could be so useless, and then it occurred to me that a computer is a s

didPrint selector not called

2016-12-16 Thread Jeremy Hughes
tInfo:)) super.printDocumentWithSettings(printSettings, showPrintPanel: showPrintPanel, delegate: delegate, didPrintSelector: didPrint, contextInfo: contextInfo) } Does anyone know why this doesn’t work? Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Fwd: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
Sorry - I forgot to copy to the list. Jeremy -- > Begin forwarded message: > > From: Jeremy Hughes > Subject: Re: didPrint selector not called > Date: 16 December 2016 at 19:15:10 GMT > To: John McCall > >> On 16 Dec 2016, at 17:24, John McCall wrote: >>

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
can call through to. I suppose it would apply if I had a subclass (of my document class) that needed to override the callback. Does that seem right to you? Jeremy -- > On 16 Dec 2016, at 18:26, Quincey Morris > wrote: > > On Dec 16, 2016, at 08:45 , Jeremy Hughes wrote: >>

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
> On 16 Dec 2016, at 19:29, John McCall wrote: > >> On Dec 16, 2016, at 11:24 AM, Jeremy Hughes >> wrote: >> Thanks for the link. >> >> I’ve looked at it, and I don’t think it applies in this case, because I’m >> not actually overriding the docu

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
Also, NSInvocation (used in the release notes sample code) is unavailable in Swift. Jeremy -- > On 16 Dec 2016, at 19:33, Jeremy Hughes wrote: > >> >> On 16 Dec 2016, at 19:29, John McCall wrote: >> >>> On Dec 16, 2016, at 11:24 AM, Jeremy Hughes &

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
;s the latter, then maybe instead of > overriding it you should just provide a different method that calls it, doing > whatever set up you need first and then passing in the appropriate delegate > and selector to do cleanup. It’s just an application method, which overrides the metho

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
> On 16 Dec 2016, at 20:01, Jeremy Hughes wrote: > >>> OK - I misunderstood what Quincey was saying. >>> >>> The passed-in delegate and selector are nil, but I obviously can’t be sure >>> that they will always be nil. >>> >>> Al

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
> On 16 Dec 2016, at 20:17, Jeremy Hughes wrote: >>> I'm not an expert in this part of Cocoa. Are there implicit system >>> *callers* of this method, or is it more of a system *utility* that you're >>> expected to call from your own code? If it&

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
anel: true, delegate: self, didPrintSelector: didPrintSelector, contextInfo: nil) } Is this a general thing? If I want to cast an NSMutableType to a Swift Type I have to cast it to an NSType first? Maybe it's changed in Swift 3 (I’m still on 2

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
> On 16 Dec 2016, at 21:40, Quincey Morris > wrote: > > On Dec 16, 2016, at 12:01 , Jeremy Hughes wrote: >> >> It’s just an application method, which overrides the method that the system >> calls from printDocument when a user chooses Print. > > Jus

Re: didPrint selector not called

2016-12-16 Thread Jeremy Hughes
> On 16 Dec 2016, at 21:54, Jeremy Hughes wrote: > >> In that case, you don’t know for sure who calls it and when. It appears to >> documented that it’s called as part of the standard implementation of >> “printDocument”, but you don’t know if there are other circ

Re: 12 hr vs 24 hr time display

2017-01-04 Thread Jeremy Pereira
> On 3 Jan 2017, at 16:34, Sandor Szatmari wrote: > > Jeremy, > >> On Jan 3, 2017, at 10:30, Jeremy Pereira >> wrote: >> >> >>> >> >> It seems obvious to me that method 1 only refers to the clock display in the >> menu bar

Re: XCode Developer issue. Debugger errors since upgrading to Snow Leopard: unable to read unknown load command 0x80000022

2009-09-22 Thread Jeremy Pereira
Sorry about coming to this late - I've been away. As I don't see any other responses to this in the list, I am replying. Apologies if it's already been covered. On 14 Sep 2009, at 17:43, maxwellma...@gmail.com wrote: Hi Folks, running XCode in debug mode shows this error countless times

Re: Why am I always getting the linker error: 'duplicate symbol'...?

2009-09-23 Thread Jeremy Pereira
On 21 Sep 2009, at 21:19, Frederick C. Lee wrote: I'm trying to replace #define directives with c datatype directives.Example: (1) #define x 123 versus... (2) const unsigned x = 123; I place this at the top of the .h (or .m) file, outside of any class or method as stand alone. However

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Jeremy Pereira
On 22 Sep 2009, at 17:19, Eric Schlegel wrote: Secondly, is there any way in any of those environments to programmatically switch Spaces? For example, if Space 3 happens to be visible, is there any Cocoa code I can run which will switch the visibility to, say, Space 2? No, there is no API (in

Re: Xcode3.2 build and analyze warning for NSString allocation

2009-09-27 Thread Jeremy Pereira
On 27 Sep 2009, at 10:03, Nick Rogers wrote: Hi, When I alloc and init a NSString the following way, there is warning that: Potential leak of an object allocated on line 526 and stored in sizeDisp. 1. Method returns an Objective-C object with a +1 retain count (owning reference). 2. O

Re: self release

2009-10-06 Thread Jeremy Pereira
On 6 Oct 2009, at 05:00, Dragos Ionel wrote: I have the following scenario: A UIViewController, called BookViewController represents a book. Another UIViewController, ChapterViewController, represents a chapter in the book. BookViewController initializes and displays one ChapterViewContr

NSNotificationCenter problem using new blocks style API calls

2009-10-07 Thread Jeremy Gordon
27;ve completed something. FYI, I am using Clang/LLVM, garbage collection is enabled and obviously I'm targeting 10.6 to be able to use the new API. Must be something basic I'm missing...right? :) Thanks! Jeremy - (void)myNotification:(NSNotification*)notification { NSLog(@

Re: NSNotificationCenter problem using new blocks style API calls

2009-10-07 Thread Jeremy Gordon
s expected. Nothing like solving your own problem in public :) On Oct 5, 2009, at 11:30 PM, Jeremy Gordon wrote: Hi, I'm experiencing a problem with NSNotificationCenter when trying to use the new blocks style interface. If I register an observer to call me back the traditional way v

Re: how to make cocoa application run as a command line tool?

2009-10-20 Thread Jeremy Pereira
On 20 Oct 2009, at 11:42, Paul M wrote: On 20/10/2009, at 10:58 PM, XiaoGang Li wrote: Greetings, I have created an document-based cocoa application, now I need to provide a command line interface for my users. for example, users input this into the terminal: ./myApplication.app/Cont

Re: how to make cocoa application run as a command line tool?

2009-10-20 Thread Jeremy Pereira
On 20 Oct 2009, at 12:20, Jeremy Pereira wrote: When I need to do this, I create a switch which puts the app into "command line" mode. static int commandLine(int argc, const char* argv[]); int main(int argc, char *argv[]) { if (argc > 1) { if (

Re: is GC not available on 10.5.8?

2009-10-23 Thread Jeremy Pereira
The load command is a 10.6 only mach-o load command (LC_DYLD_INFO_ONLY). Something in your application is compiled and linked for 10.6. On 23 Oct 2009, at 16:40, Nick Rogers wrote: Hi, Thanks for the reply. The app actually works as a launcher of another app with root privileges (its onl

Re: Alternative to stringWithContentsOfURL

2009-10-27 Thread Jeremy Pereira
On 27 Oct 2009, at 15:11, James Lin wrote: Hi all, I am still having the mysterious error of "Internal Error 500" message returned from stringWithContentsOfURL. I am using stringWithContentsOfURL to call a php script that add an entry to MySQL database. My ISP claims that they have rem

Re: Problem with allocating memory

2009-10-28 Thread Jeremy Pereira
On 28 Oct 2009, at 09:27, Michael Abendroth wrote: Basically, I got a source list to witch the user can add entries via a button. The user can also edit the entries title by double clicking on it. The problem is that when you add 3 entries for example, and then edit them, all the items you rena

Re: -[NSString stringWithCString:encoding:] memory management question

2009-11-12 Thread Jeremy Pereira
On 11 Nov 2009, at 19:58, Hank Heijink (Mailinglists) wrote: > Hi all, > > I've run into a funny crash when using -[NSString > stringWithCString:encoding:]. The code in question runs in the iPhone > Simulator. I haven't found anything on the web about this, but I found out > some things by ex

Re: -[NSString stringWithCString:encoding:] memory management question

2009-11-12 Thread Jeremy Pereira
On 12 Nov 2009, at 14:23, Hank Heijink (Mailinglists) wrote: > On Nov 12, 2009, at 5:59 AM, Jeremy Pereira wrote: > >>> for (NSUInteger i = 0; i < nTags; i++) { >>> unsigned long pcLength = 0; >>> if (getLengthOfMetaData(fileHandle

Re: Performance

2009-11-16 Thread Jeremy Pereira
On 16 Nov 2009, at 06:14, Chris Carson wrote: > > The application runs pretty well, and running it through the Leaks instrument > there are no leaks except for 16-bytes when the application is first starting > caused by IOUSBLib. However, looking at it in the Activity Monitor, the real > memo

Re: asl_log aborts the program?

2009-11-20 Thread Jeremy Pereira
On 20 Nov 2009, at 06:33, Chris Idou wrote: > > > I've got a report from a user of my program crashing. > > In the console they are getting this: > > 11/19/09 3:08:46 PM[0x0-0x18a18a]Progname[8699]Progname(8699,0x1167b) > malloc: *** error for object 0x100563870: pointer being freed was

Re: NSTimer never being deallocated

2010-03-14 Thread Jeremy Pereira
On 13 Mar 2010, at 23:56, Tobias Jordan wrote: > Hi Paul, > > You said 'an object you don't manage' -- If I alloc/init an instance of > NSTimer I am responsible for this object, in my opinion. Until you release it. After that, you are not responsible for it. That doesn't mean that something

Re: Case sensitive fileName

2010-03-17 Thread Jeremy Pereira
On 17 Mar 2010, at 13:35, gMail.com wrote: > Hi, I have a file path > /Folder/filename.txt > The API fileExistsAtPath says that it exists. > Now I need to get its real case sensitive file name, which is indeed e.g. > "FileName.txt" > How can I get it in a fast way? I thought by its inode, but I

Re: Case sensitive fileName

2010-03-17 Thread Jeremy Pereira
On 17 Mar 2010, at 16:07, Jens Alfke wrote: > > On Mar 17, 2010, at 6:35 AM, gMail.com wrote: > >> Now I need to get its real case sensitive file name, which is indeed e.g. >> "FileName.txt" >> How can I get it in a fast way? I thought by its inode, but I can't really >> know how to do that. >

Re: User-space threads and NSAutoreleasePool

2010-03-18 Thread Jeremy Pereira
On 18 Mar 2010, at 06:41, BJ Homer wrote: > On Wed, Mar 17, 2010 at 11:47 PM, Greg Guerin wrote: > doing one transaction updating 400-500 records.) Hence, we pipeline the HTTP > requests, starting transfer of the second before the first one is finished. > There are a large number of servers that

Re: Detecting if you're being debugged

2010-03-18 Thread Jeremy Pereira
On 18 Mar 2010, at 11:48, Peter Hudson wrote: > Technical Q&A QA1361 > Detecting the Debugger > > Does this code report on my app being debugged by any third party, even when > the app has been stripped of symbols ? > Would it work irrespective of the debugging tool used ? Did you read the war

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread Jeremy Pereira
On 19 Mar 2010, at 12:45, H. Miersch wrote: >> >> It appears you are sending -selectItemAtIndex: to the combo box, > > Correct. I tell it to select the first item (index 0). And when I put the > list if items in the nib file (no data source) it works. > > But this morning I quickly inserted a

Re: Main thread crash

2010-03-23 Thread Jeremy Pereira
On 23 Mar 2010, at 16:17, Arun wrote: > How does NSZombies help in resolving the crash? > Can anyone explain please. http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html#SECFOUNDATION It was surprisingly hard to track down that link using Google. In the end I got it with the fo

Re: Using the #import directive

2010-04-05 Thread Jeremy Pereira
On 2 Apr 2010, at 00:59, Steve Cronin wrote: > > On Apr 1, 2010, at 5:58 PM, Jens Alfke wrote: > >> >> On Apr 1, 2010, at 3:51 PM, Steve Cronin wrote: >> >>> I have an import statement like the last example but I can't find any "bar" >>> directory >>> I'm unable to determine the particular i

Modal Window with dynamic nstextfield

2010-04-05 Thread Jeremy Matthews
[statusText setStringValue:temp222]; } NSDate *future2 = [NSDate dateWithTimeIntervalSinceNow:2]; [NSThread sleepUntilDate:future2]; [NSApp endModalSession:session]; [progressWindow orderOut:self]; [NSApp endSheet:progr

Re: Modal Window with dynamic nstextfield

2010-04-05 Thread Jeremy Matthews
Oh dear? Sent from my iPhone On Apr 5, 2010, at 4:47 PM, Kyle Sluder wrote: On Mon, Apr 5, 2010 at 10:15 AM, Jeremy Matthews > wrote: for (mmm=0;mmm<150;mmm++) { [progressIndicator displayIfNeeded]; [progressIndicator setDoubleVal

Re: Modal Window with dynamic nstextfield

2010-04-05 Thread Jeremy Matthews
On Apr 5, 2010, at 6:18 PM, Kyle Sluder wrote: > On Mon, Apr 5, 2010 at 3:12 PM, Jeremy Matthews > wrote: >> Oh dear? > > Yeah. It's a pretty heavy topic. Your use of a for loop inside a modal > runloop to perform a lengthy operation leads me to believe you'

Re: How to empty the Trash programmatically?

2010-04-16 Thread Jeremy Pereira
On 16 Apr 2010, at 08:22, Graham Cox wrote: > Don't. > > The only app that the user wants to empty the trash is Finder, not yours. If > they want it emptied (or emptied securely), they'll go to the Finder and use > the menu there. It's OK for your app to move stuff to the trash as long as > i

Re: How to empty the Trash programmatically?

2010-04-16 Thread Jeremy Pereira
On 16 Apr 2010, at 10:29, Matt Gough wrote: > > On 16 Apr 2010, at 09:46:27, Jeremy Pereira wrote: > >> On 16 Apr 2010, at 08:22, Graham Cox wrote: >> >>> Don't. >>> >>> The only app that the user wants to empty the trash is Finder

swipe gestures

2010-05-16 Thread Jeremy Matthews
So I'm working them into my app, and I noticed that I can't seem to use them in order to select a tabviewitem, but I can appear to do other things (logging, alerts, etc)? I checked my IBOutlets and everything is kosher there... Is there a limitation here I am unaware of? I can use tabviewitem se

Mail Frameworks

2010-06-02 Thread Jeremy Matthews
am reading through headers and trying to figure what works and what doesn't. Is anyone using either of these for attachments? Any opinions on one or the other? Something else? Thanks, jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: Mail Frameworks

2010-06-02 Thread Jeremy Matthews
Mac OS... Sent from my iPhone On Jun 2, 2010, at 3:25 PM, Laurent Cerveau wrote: Is this on MacOS or iPhoneOS? I think the way to go on MacOS is through the scripting bridge laurent Sent from my road phone On Jun 2, 2010, at 8:57 PM, Jeremy Matthews wrote: So...I'm working

NewStyle Preferences

2010-06-20 Thread Jeremy Matthews
to see what people are doing these days... I was wondering about the experiences out there...and any best practices recommendations. I see a lot of projects using the last method, and using code more than IB to put it together - love to know what people are using out th

Overwhelming Options

2011-09-01 Thread Jeremy Matthews
I have an app with some groups of checkboxes...and it really takes up too much space in the UI. It is a utility app, but it has about 7 different matricies of about 6 checkboxes eachso lots of options...and it can be overwhelming at times. I'd like to design a better UI so as to not take up

Re: Overwhelming Options

2011-09-01 Thread Jeremy Matthews
It's an internal app for "power users"...and its been a struggle to reduce it so far. I've been told that the current options need to stay putso no reducing for the moment. ...but I don't like it either... Thanks, j On Sep 1, 2011, at 1:51 PM, Jens Alfke wrote: > > On Sep 1, 2011, at 9:5

Re: Overwhelming Options

2011-09-01 Thread Jeremy Matthews
e"...which doesn't really work. So when I make significant changes its not usually a good thing...so I may be fighting a losing battle anyhow. Thanks again, jeremy On Sep 1, 2011, at 4:42 PM, Quincey Morris wrote: > On Sep 1, 2011, at 11:48 , Jeremy Matthews wrote: > >> It&#x

Re: Overwhelming Options

2011-09-02 Thread Jeremy Hughes
be an array of 39 checkboxes. ... which is what you get if you choose View Options from the iTunes View menu. Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact th

iCal Integration

2012-02-23 Thread Jeremy Matthews
d finding out the hard way? Or perhaps, a better solution altogether? Thanks, jeremy ___ 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)lis

Re: iCal Integration

2012-02-24 Thread Jeremy Matthews
Awesome, I'll check it out! Thanks Jeremy Sent from my iPhone On Feb 24, 2012, at 4:42 AM, John Maisey wrote: > > I also don't think this is in the API. > > The relevant information is stored in the Info.plist file for each calendar. > The keys are 'Even

Read Protected File

2011-02-04 Thread Jeremy Matthews
t I'd love some other examples just to make sure I'm doing things properly... Thanks, jeremy smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

crash in ThemeTextRelease

2011-06-04 Thread Jeremy Todd
cause? It seems like our use of NSMenu is suspect (we build and rebuild our app's menus quite often) so we'll certainly take a closer look there. Regards, Jeremy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Re: My try/catch block isn't catching exceptions on 10.6

2009-11-27 Thread Jeremy Pereira
On 26 Nov 2009, at 23:51, Mark Allan wrote: > > > Exception Type: EXC_BAD_ACCESS (SIGBUS) > Exception Codes: KERN_PROTECTION_FAILURE at 0x0010 > Crashed Thread: 3 You can't catch that with an Objective C exception handler. It's a Unix bus error. Probably some pointer has chang

Re: An Array of structs

2009-11-27 Thread Jeremy Pereira
On 27 Nov 2009, at 11:35, John Love wrote: > > I get "Initializer element is not constant. This pertains to the NSString* > because if I directly substitute the following, no compile error happens: > YearAmt gTest[] = {{@"testy", 10} > > What fundamental pertaining to C or C++ am I not getting?

Re: Does NSData rearrange the order of bits?

2009-12-01 Thread Jeremy Pereira
On 30 Nov 2009, at 20:32, Brad Gibbs wrote: > Another list member mailed me an explanation offline, causing me to look for > and find the real problem preventing my code from running. Any chance of posting the off list response back to the list? It would improve the usefulness of the list arc

Re: iterating and removing objects from a collection

2009-12-01 Thread Jeremy Pereira
On 30 Nov 2009, at 21:21, Ken Thomases wrote: > On Nov 30, 2009, at 2:45 PM, Dennis Munsie wrote: > >> I run into this all the time where I need to iterate through an >> NSMutableArray (or set, etc, etc) and remove some of the items. My normal >> pattern has been this: >> >> NSMutableSet *remo

Re: ipp help - need advice

2009-12-17 Thread Jeremy Pereira
IPP is an open standard. The spec is available on the Internet. The relevant RFCs are 2910 and 2911. On 15 Dec 2009, at 23:42, Development wrote: > I have constructed a url request to send a png file to a ipp printer to be > printed. The problem is that I get a Bad Request error when I post i

Re: App works when launched from Xcode, not from Finder

2009-12-17 Thread Jeremy Pereira
On 16 Dec 2009, at 04:05, PCWiz wrote: > Here's the screen capture that demonstrates this issue: > > http://www.vimeo.com/8208563 > > This time around, I got a few errors logged in Console: > > *** -[NSRecursiveLock unlock]: lock ( '(null)') > unlocked from thread which did not lock it > ***

NSPopupButton & URLs

2009-12-27 Thread Jeremy Matthews
So I have an idea or two, but nothing graceful, so I wanted to know the best way of doing this I have an xcode 3.2.1 (10.6+ only project), which has a method that has an optional URL as a parameter. This is mostly a take on the calendarstore framework...I just want to offer the ability for

Re: Detect dim/brightness keys on laptop

2009-12-30 Thread Jeremy Pereira
On 25 Dec 2009, at 14:01, John Clayton wrote: > > My aim is to write a little util that swaps the function keys depending on > which app is running (i.e. so that during certain apps you don't have to use > the FN key on the laptop to get F1). So I need to have the ability to modify > the eve

Re: Setting NSWindow titlebar height

2010-01-04 Thread Jeremy Pereira
On 3 Jan 2010, at 19:41, PCWiz wrote: > I have a window that looks like this right now: > > http://img22.imageshack.us/img22/2953/screenshot20100103at123.png > > I've removed the titlebar buttons and everything Why? How does the user make the Window go away/hide without the title bar buttons

Re: iPhone: NSXMLParser problems

2010-01-05 Thread Jeremy Pereira
On 5 Jan 2010, at 05:09, Eric E. Dolecki wrote: > > - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName > namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName > attributes:(NSDictionary *)attributeDict { > > NSLog(@"didStartElement"); > > //not sure ho

Re: iPhone: NSXMLParser problems

2010-01-06 Thread Jeremy Pereira
Trying again, the HTML markup in the previous version of this e-mail sent the size over the list limit. Apologies if the original also turns up I created a little test program to run the XML through a parser and mine worked which was a bit mystifying until I figured out what the problem is.

Re: NSXMLParser question about duplicate nodes

2010-01-06 Thread Jeremy Pereira
On 6 Jan 2010, at 16:22, Eric E. Dolecki wrote: > I am fetching weather data & in my results I am getting today and tomorrow's > forecasts. However they have the same node: > > > > > How can I get at those separately in my didStartElement? Is there a way to > turn that into an array or someth

Re: NSXMLParser question about duplicate nodes

2010-01-06 Thread Jeremy Pereira
6, 2010 at 1:07 PM, Jeremy Pereira wrote: > > On 6 Jan 2010, at 16:22, Eric E. Dolecki wrote: > > > I am fetching weather data & in my results I am getting today and tomorrow's > > forecasts. However they have the same node: > > > > > > > >

Re: NSDictionary trouble

2010-01-19 Thread Jeremy Pereira
On 19 Jan 2010, at 16:53, Shawn Rutledge wrote: > I'm accustomed to > things like Qt and Java where hashtables can contain anything for both > key and value. This is not true (at least for Java and probably for QT for the same reason). From the API docs for the Map abstract class: "Note: gr

Re: NSDictionary trouble

2010-01-20 Thread Jeremy Pereira
On 19 Jan 2010, at 23:06, Jens Alfke wrote: > > On Jan 19, 2010, at 10:46 AM, Kirk Kerekes wrote: > >> NSDictionary will use almost any object as a key: >> >> From the docs: >> "In general, a key can be any object (provided that it conforms to the >> NSCopying protocol...)" >> >> -- and if i

Re: Cloning an NSXMLElement and its children?

2010-02-03 Thread Jeremy Pereira
On 3 Feb 2010, at 00:28, Robert Monaghan wrote: > Its a fairly deep copy. There are several nodes deep. > I am trying to copy parts of the tree, so that I don't have to write code to > regenerate them. No. The question was not "is your tree deep?" but is the "copy" method implemented by NSXML

Re: always show warnings?

2010-02-09 Thread Jeremy Pereira
On 9 Feb 2010, at 15:37, Joar Wingfors wrote: > > On 8 feb 2010, at 00.05, Mario Emmenlauer wrote: > >> I'm not using XCode, however it sounds likely that the object files >> are just not rebuilt? You say it happens at every build except the >> first time? The compiler will only rebuild objects

  1   2   3   >