trying to use cached image as background in NSView

2017-04-03 Thread Patrick J. Collins
elf setNeedsDisplay:YES]; } I tried asking this question on Stack Overflow, but it's gotten no love.. http://stackoverflow.com/questions/43177850/trying-to-use-cached-image-as-background-in-nsview Patrick J. Collins http://collinatorstudios.com ___ C

Re: QuickLook CGSReenableUpdate Message

2016-09-14 Thread Patrick Cusack
Did you ever solve this issue? I filed a DTS with apple which they returned to me as a bug. Patrick Sent from my iPhone > On Jan 9, 2015, at 10:25 AM, cocoa-dev-requ...@lists.apple.com wrote: > > Message: 11 > Date: Fri, 09 Jan 2015 11:25:51 -0700 > From: Richard Charles

best way to implement a clickable grid?

2015-09-14 Thread Patrick J. Collins
click events on a simple NSView? Any push in the right direction would be greatly appreciated. Thanks! Patrick J. Collins http://collinatorstudios.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

another question about view based NSTableViews

2015-03-15 Thread Patrick J. Collins
) know what row it's in, what column it is, etc... ? Patrick J. Collins http://collinatorstudios.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Re: Trying to hide a NSProgressIndicator upon finishing of table rendering

2015-03-15 Thread Patrick J. Collins
ing, if say that lag was not nothing that could be removed, how could I make my progress bar hide not when the table content updates, but when the table has completed it's updating (hence the delay is over), because right now I get the spinner, it disappears, but there is roughly a 0.75 second

Re: highlight a nsview on click-drag?

2015-03-15 Thread Patrick J. Collins
of the number of samples and current sample index, then you get all of that for free and it seems better to me. Patrick J. Collins http://collinatorstudios.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

Re: highlight a nsview on click-drag?

2015-03-15 Thread Patrick J. Collins
ould be selecting frames of audio, so that when it is played, the playhead starts there and ends at the end of the rectangle. Patrick J. Collins http://collinatorstudios.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

highlight a nsview on click-drag?

2015-03-14 Thread Patrick J. Collins
rect)? Is there anything built-in that does this for me? Patrick J. Collins http://collinatorstudios.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Trying to hide a NSProgressIndicator upon finishing of table rendering

2015-03-13 Thread Patrick J. Collins
view, as I guess NSTableView is doing some lazy loading. Is there a way to determine when the table has actually finished drawing itself so I can hook into that? Thanks! Patrick J. Collins http://collinatorstudios.com ___ Cocoa-dev mailing list (Cocoa

Re: setting table view rows and columns?

2015-03-13 Thread Patrick J. Collins
> Also make sure that that "headers" is checked in the table view attributes > inspector, or the headers won't be exposed to set in the first place. aargh! Totally missed that checkbox, and yeah that was my problem!!! thanks! Patrick J. Collins http://

Re: setting table view rows and columns?

2015-03-13 Thread Patrick J. Collins
e is no text.. it's all blank.. Quite frustrating. I am thinking labels is the way to go anyway because I want the header to stay locked when I scroll.. Patrick J. Collins http://collinatorstudios.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.a

Re: setting table view rows and columns?

2015-03-12 Thread Patrick J. Collins
but when I build my app, it's blank. I am able to populate my table with data, I just can't seem to get a header to show up. Maybe I should just use labels above the table?? Patrick J. Collins http://collinatorstudios.com ___ Coc

setting table view rows and columns?

2015-03-12 Thread Patrick J. Collins
nteger)row; That's what I am looking to do, but I don't get how I specify how many columns there are in the table? I have everything else in my table setup properly, I am just trying to figure out how to set the header/column names. Thanks! Patrick J. Collins http://c

What is the best way to get events fired on keypress for an NSTextField?

2015-03-12 Thread Patrick J. Collins
this currently? Patrick J. Collins http://collinatorstudios.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Document based architecture

2015-03-09 Thread Patrick J. Collins
ying things like "The Xcode development application provides project templates for document-based applications." Which I cannot find anywhere in XCode... Can anyone please shed some light on where I can get real-world instructions on how to setup this sort of design? T

Re: Trying to create a 1px width NSBox

2015-03-08 Thread Patrick J. Collins
ting and offering a "vertical line", if it's not useful? I mean, all I want is a vertical line. I don't understand why something like that exists if it's not customizable. Patrick J. Collins http://collinatorstudios.com __

Drawing inside an NSImage?

2015-03-08 Thread Patrick J. Collins
e directly in the drawRect (not using an NSImage): method.. What am I doing wrong here? Patrick J. Collins http://collinatorstudios.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t

Trying to create a 1px width NSBox

2015-03-08 Thread Patrick J. Collins
no difference. How can I get a simple 1px solid colored object that I can use for this purpose? Patrick J. Collins http://collinatorstudios.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

WKWebView +

2015-02-13 Thread patrick machielse
rk correctly with file s? There must be a way, this seems quite basic. patrick -- Patrick Machielse Hieper Software http://www.hieper.nl i...@hieper.nl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

Re: About the Bundle creator OS Type code

2015-02-03 Thread Patrick Benton
interesting. apparently creator codes were respected up to OS X 10.6 http://en.wikipedia.org/wiki/Creator_code (although depreciated) but it looks like it no longer is used. (unless people still run OS X 10.5 or lower??) On Sep 19, 2014, at 3:54 AM, Graham Cox wrote: > > On 19 Sep 2014, at

Re: Accessing security scoped URLs from multiple threads [SOLVED]

2014-03-20 Thread patrick machielse
Op 20 mrt. 2014, om 02:50 heeft Charles Srstka het volgende geschreven: > On Mar 19, 2014, at 7:29 PM, patrick machielse wrote: > >> According to the documentation: >> >> "When you call the stopAccessingSecurityScopedResource method, you >> immedia

Accessing security scoped URLs from multiple threads

2014-03-19 Thread patrick machielse
ple threads? We'd be grateful for any ideas! patrick -- Patrick Machielse Hieper Software http://www.hieper.nl i...@hieper.nl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

URLByResolvingBookmarkData: crashes on 10.8

2013-11-05 Thread patrick machielse
t of our app. Has anyone run into this issue before, and if so is there a way to avoid this problem? Thanks, patrick -- Patrick Machielse Hieper Software http://www.hieper.nl i...@hieper.nl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: ARC vs Manual Reference Counting

2013-09-09 Thread Patrick Cusack
x27;t had much exposure to ARC yet. So I will be upgrading with Mavericks to ARC and AVFoundation. Thanks for all of the comments. Patrick On Sep 9, 2013, at 7:29 AM, Alex Zavatone wrote: > > On Sep 9, 2013, at 3:58 AM, Tom Davie wrote: > >> >> On 9 Sep 2013, at 09:44, Ky

Re: ARC vs Manual Reference Counting

2013-09-08 Thread Patrick Cusack
question is "Why did Apple decide to introduce ARC at all?". I am not convinced that the conventions are any easier than the previous model of manual retain counts. Patrick On Sep 8, 2013, at 10:11 PM, Fritz Anderson wrote: > On Sun, Sep 8, 2013 at 11:41 PM, wrote: > Would anyone

Re: Can I determine who is calling a delegate

2013-04-26 Thread Patrick Cusack
No, its not. That's what is weird. On Apr 26, 2013, at 5:34 PM, Jens Alfke wrote: > > On Apr 26, 2013, at 5:18 PM, livinginlosange...@mac.com wrote: > >> Is there a way for me to find out what object is posting a >> -[NSNotificationCenter postNotificationName:object:userInfo:] that >> eventu

Preventing the dictionary popup from appearing

2013-02-14 Thread patrick machielse
s feature off. Thanks, patrick -- Patrick Machielse Hieper Software http://www.hieper.nl i...@hieper.nl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderator

Re: Warning users when editing multiple items

2013-02-06 Thread Patrick Cusack
e to press return. Weird. Sent from my iPhone On Feb 6, 2013, at 10:32 AM, Flavio Donadio wrote: > Graham and Patrick, > > > iTunes does that on commit. If I try to, let's say, add/change/delete the > cover image for several tracks, I'm reminded that I'm doing it fo

Re: Warning users when editing multiple items

2013-02-06 Thread Patrick Cusack
t on Enter only". I had it set to "Sent on End of Editing" which cause the control to clear out the value for all of the selected cues when I finished editing. Patrick On Feb 5, 2013, at 8:01 PM, Graham Cox wrote: > > On 06/02/2013, at 2:52 PM, Patrick Cusack wrote: > &

Re: Warning users when editing multiple items

2013-02-05 Thread Patrick Cusack
raham Cox wrote: > > On 06/02/2013, at 2:52 PM, Patrick Cusack wrote: > >> Currently, my users can tab into the first field, and now they have >> inadvertently erased all of the names of the selected rows. Its been a while >> since I visited this code and I explicitl

Re: NSScrollView Problems

2013-02-02 Thread Patrick Cusack
You can see an example of the problem here: http://i45.tinypic.com/fu8bpz.png On Feb 2, 2013, at 8:06 PM, Graham Cox wrote: > > On 03/02/2013, at 1:59 PM, Patrick Cusack wrote: > >> Sorry, I have asked this before, but I am genuinely perplexed and need help. >> I

Re: NSScrollView Problems

2013-02-02 Thread Patrick Cusack
> In IB, you can either add a scroll view than add a custom view to it, or add > a custom view and then use 'Embed in Scrollview' to wrap it in the > scrollview. Both work fine for me. I have embedded a custom view inside an NSScrollView. I have set the NSScrollview to be NSViewWidthResizable,

NSScrollView Problems

2013-02-02 Thread Patrick Cusack
cocoa-dev, you are my only hope. Thanks, Patrick ___ 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: Editing multiple selections with bindings

2013-01-04 Thread Patrick Cusack
On Jan 3, 2013, at 9:18 PM, Keary Suska wrote: > On Jan 3, 2013, at 3:53 PM, Patrick Cusack wrote: > >> Keary, >> >> I am checking whether or not the user is trying to edit multiple items in my >> delegate's - (BOOL)control:(NSControl *)control textShouldEnd

Re: Editing multiple selections with bindings

2013-01-03 Thread Patrick Cusack
ut my control still has focus after calling discardEditing. Thoughts? Patrick On Jan 2, 2013, at 9:10 PM, Keary Suska wrote: > On Jan 2, 2013, at 7:29 PM, Patrick Cusack wrote: > >> Ok, I do have a delegate for my controls and am currently using >> control:textShouldEndE

Re: Editing multiple selections with bindings

2013-01-02 Thread Patrick Cusack
acceptsFirstResponder gets called more than once, and then the control passes focus onto the next control in the kew view loop. Really what I want to a accomplish is to discard the editing and resign focus from the control. Thanks, Patrick On Jan 2, 2013, at 6:41 AM, Keary Suska wrote: > On Jan 2, 2013,

Re: Editing multiple selections with bindings

2013-01-01 Thread Patrick Cusack
Sorry, I should specify that this is on OSX. resignFirstResponder tries to endEditing on the text you have typed and the commit the edits. I am trying to scrap the editing session and lose focus on the control as if no editing ever even started. I would like to ideally throw an NSRunAlert pan

awakeFromSnapshotEvents: flags == 128?

2012-07-30 Thread patrick machielse
not caused by my override of awakeFromSnapshotEvents:. I'm trying to understand what is happening in the app / frameworks when flags == 128… patrick -- Patrick Machielse Hieper Software http://www.hieper.nl i...@hieper.nl ___ Cocoa-dev mail

Re: Proper place to post on 10.8 SDK?

2012-06-11 Thread Patrick Cusack
ent from my iPhone.) > > -- > Conrad Shultz > > On Jun 11, 2012, at 9:50, livinginlosange...@mac.com wrote: > >> Where could I post questions regarding the 10.8 SDK? Is that on the apple >> developer website? >> >> Patrick >> __

Fwd: Tool for creating application icon

2012-06-07 Thread Patrick Robertson
> I’m definitely not an icon designer myself, but it’s my understanding that people generally just use Photoshop, or, if your budget is tight, one of its less-expensive equivalents such as Pixelmator. All you need is a set of images in an alpha-containing format like .png, scaled to different sizes

Re: ARC apps - loading non-ARC bundles

2012-05-18 Thread Patrick Robertson
omething I have to keep in mind when testing the ARC app for the first time. Cheers, On 18 May 2012 17:37, David Duncan wrote: > On May 18, 2012, at 7:39 AM, Patrick Robertson wrote: > > > I'm (finally) looking at converting my non-ARC (Mac OS X) app over to > ARC, > > b

ARC apps - loading non-ARC bundles

2012-05-18 Thread Patrick Robertson
Hi all, I'm (finally) looking at converting my non-ARC (Mac OS X) app over to ARC, but also have quite a few external plugins/bundles which can be loaded into the main app on runtime. My question is - can my ARC app load non-ARC bundles, or is this not possible. My guess is that it's the similar

Re: Fast Enumeration and temporary objects/autoreleasing

2012-04-17 Thread Patrick Robertson
> While you have had the question answered, the fact you asked it shows a misunderstanding about memory management. Next time in my reply I will be clear to state that a) I have realised my mistake b) I have learnt from it to to save you some time writing your response ;-) I do appreciate your hel

Re: Fast Enumeration and temporary objects/autoreleasing

2012-04-16 Thread Patrick Robertson
a reference to one of the objects in the thing you are enumerating. > > [ array objectAtIndex:i ] doesn't create temporaries either. > > > On Apr 16, 2012, at 5:42 PM, Patrick Robertson wrote: > > > Hi all, > > > > I've searched the web, but can't

When to declare variables and the compiler's intelligence

2012-04-16 Thread Patrick Robertson
Another one on the underlying nature of the compiler and Objective-C for you here! I'm interested in how clever the compiler is at deciding where to create variables etc. in the code, and whether it's more efficient (OK, it'll be negligible) to declare variables only when they're needed for example

Fast Enumeration and temporary objects/autoreleasing

2012-04-16 Thread Patrick Robertson
Hi all, I've searched the web, but can't seem to find any concrete information on how fast enumeration loops manage temporarily created objects. Would anybody be able to shine some light on whether fast enumeration itself takes care of the objects it creates? So, for example in: for (id anObject

Re: Can't log in to Developer Centre

2012-03-09 Thread Patrick
Pretty sure that'd be devprogr...@apple.com. On Fri, Mar 9, 2012 at 2:51 PM, Peter Hudson wrote: > I can't log in to my Dev Centre account. > Does anyone know who to email about this ? > > Peter > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: AXUIElementPostKeyboardEvent - not sending key presses to Safari/TextEdit in Lion

2012-02-17 Thread Patrick Robertson
m our applications. Thanks for your reply Nick, it's nice to know that I'm not the only one. On 17 February 2012 18:27, Nick Zitzmann wrote: > > On Feb 16, 2012, at 1:22 AM, Patrick Robertson wrote: > > > As a follow up, it appears that in 10.7.3 Apple have included a further >

Re: AXUIElementPostKeyboardEvent - not sending key presses to Safari/TextEdit in Lion

2012-02-17 Thread Patrick Robertson
AXUIElementPostKeyboardEvent anymore. Do people consider this to be reasonable/make sense? Somehow, I don't see how it's justifiable for a Sandboxed app to display this behaviour, and causes serious usability problems. On 24 November 2011 10:25, Bill Cheeseman wrote: > > On Nov 23, 2011, at

Re: CoreData and Threading

2011-11-20 Thread patrick machielse
-managed-object) from my persistent document which contains just the info I need to access (read-only) from the audio thread. I could use the 'NSManagedObjectContextObjectsDidChangeNotification' notification to update or refresh this representation. I think / hope this is a workable sol

Re: CoreData and Threading

2011-11-20 Thread patrick machielse
is used 'read only'. The information must flow from the main context to the background context. All examples seem to assume editing in the background and updating the main context. patrick -- Patrick Machielse Hieper Software http://www.hieper.nl i...@hieper.nl

CoreData and Threading

2011-11-18 Thread patrick machielse
nto the background thread context. Is there a solution for my use case? I could probably try to extend a solution with locking, but it will be error prone… Thanks, patrick -- Patrick Machielse Hieper Software http://www.hieper.nl i...@hieper.nl ___ Cocoa

AXUIElementPostKeyboardEvent - not sending key presses to Safari/TextEdit in Lion

2011-11-17 Thread Patrick Robertson
Hi all, I've upgraded to Lion, and my app which sends simulated keyboard presses to various apps to activate a service cannot send these keyboard presses to Safari or TextEdit. The keyboard presses are still sent correctly to Xcode, Finder and Mail. I have also confirmed that they still work fine

Re: Launching 10.5 app on 10.4

2011-10-18 Thread Patrick Cusack
Ok, so it will warn the user? I had an experience where the application wouldn't launch and no alert panel would open. Thanks, patrick On Oct 18, 2011, at 11:39 AM, Tim Schröder wrote: > I don't think there is one. If the build settings are correct, OS X won't > star

Anyone else having serious issues with Xcode 4?

2011-08-13 Thread Patrick William Walker
/IBUnsavedFilesClassProvider.m:148 Anyone else having this problem and found a solution? Patrick William Walker patrick.william.wal...@nb.sympatico.ca patrickwilliamwal...@yahoo.com will.wal...@unb.ca

Underlining text

2011-08-12 Thread patrick machielse
is there a better way to draw underlines? Thanks, patrick -- Patrick Machielse Hieper Software http://www.hieper.nl i...@hieper.nl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Toggle an object (image) when Command key is pressed: flagsChanged?

2011-07-26 Thread Patrick Robertson
Hi all, I'm wanting to toggle an object between its default and 'alternate' state (the object is made up of an image and some text) when the user hits the command (⌘) key. An obvious example is in Xcode 3.2 where if you press ⌥ the 'Build and Run' icon and text changes to 'Build and Debug' (or vic

Re: More on drawRect not getting called

2011-07-24 Thread Patrick William Walker
#x27;ve done that), you sent a message to your SequeraStepWindow, and that method sets a flag, then calls [self DrawNotes]. What is inside DrawNotes? Inside that there has to be a [myView setNeedsDisplay: YES]; On 2011-07-24, at 3:45 PM, Tom Jeffries wrote: > Patrick, > > Everything wo

Re: Does anyone else dislike Xcode 4?

2011-07-24 Thread Patrick William Walker
> I agree. Xcode 4 may have a slight learning curve and what seems to be a performance hit but it's worth it and will likely get even better. The new action triggers inside the debugger are pure freakin' gold. I haven't u

Re: finder eject images

2011-07-05 Thread Patrick Robertson
ter suggestions, feel free to let me know! For those hoping to use the CoreTypes.bundle ICNS, I have not seen any of them disappear or change name in over 8 years with OS updates. No changes is Lion either as far as I can tell. On 5 July 2011 15:20, Kyle Sluder wrote: > On Jul 5, 2011, at 5:20 AM, P

Re: finder eject images

2011-07-05 Thread Patrick Robertson
> Yes, but we're supposed to use them in-place, not copy them into our apps. I wasn't suggesting that be done. Here's the code I use in my apps: - (NSImage *)sysIconNamed:(NSString *)name { NSString *path = [[NSBundle bundleWithPath: @"/System/Library/CoreServices/CoreTypes.bundle"] pathForResou

Re: finder eject images

2011-07-04 Thread Patrick Robertson
Lots of system icons are stored in /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ EjectMediaIcon.icns is in there :) On 4 July 2011 20:21, Lee Ann Rucker wrote: > Unicode "eject symbol" 23CF, possibly in Apple Symbols font: ⏏ > > - Original Message - > From: "Tony Ro

Re: Adding HTML data to the general pasteboard

2011-05-27 Thread Patrick Robertson
g into RTF and HTML? On 27 May 2011 16:43, Patrick Robertson wrote: > Dear all, > > I currently have an application which pastes objects from a given list of > saved objects (basically strings) to wherever the mouse if focused. > What I'm looking to do is paste these objects in

Adding HTML data to the general pasteboard

2011-05-27 Thread Patrick Robertson
Dear all, I currently have an application which pastes objects from a given list of saved objects (basically strings) to wherever the mouse if focused. What I'm looking to do is paste these objects in RT format into various text editors. Most notably - URL strings (e.g. http://example.com) such th

PDFKit Frustrations

2011-04-12 Thread Patrick William Walker
I've been trying to create a subclass of PDFView in order to load a PDF file (a standardized form) so that some of the fields can be automated. The problem that I have been having is that instance variables will not seem draw in the view at all although static strings will. I have verified that

Re: OutlineView with big text editor

2010-11-27 Thread Patrick Mau
geWidth; r.size.width -= imageWidth; [super editWithFrame:r inView:controlView editor:textObj delegate:anObject event:theEvent]; } Patrick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

Re: NSTableView within NSScrollView in code

2010-11-11 Thread Patrick Mau
me:NSViewFrameDidChangeNotification object:[scrollView contentView]]; Strange thing, it does NOT work, allthough the contentView is in fact posting these notifications. I checked this by simply implementing the first snippet. Cheers and thanks for reading. Patrick On 11.11.2010, at 05:11, Jerry

Re: NSTableView within NSScrollView in code

2010-11-10 Thread Patrick Mau
Hallo Kyle Thanks for your remarks, but that's not it (unfortunately, see below). On 10.11.2010, at 22:54, Kyle Sluder wrote: > On Wed, Nov 10, 2010 at 1:34 PM, Patrick Mau wrote: >> >> Hallo everyone >> >> When I embed an NSTableView in an NScrollView, everyt

NSTableView within NSScrollView in code

2010-11-10 Thread Patrick Mau
e indeed resizeable, contain a valid headerCell and dataCell. As I said, everything is fine, but the columns do not auto-resize. Thanks a lot, Patrick PS: I will created a sample project if anyone wants me to, but if you copy the NSView's code into a newly created project with a custom view, you ar

Re: NSCell and partial redraw

2010-08-31 Thread Patrick Mau
Hallo Fritz Thanks a lot for your comments. I just have a few remarks to clarify what I meant. Please see below. On 31.08.2010, at 17:26, Fritz Anderson wrote: > On 31 Aug 2010, at 4:59 AM, Patrick Mau wrote: > >> Let's assume I have a custom NSView that will use to custom

NSCell and partial redraw

2010-08-31 Thread Patrick Mau
ontrolView" for the region and maintain it there? How do people implement NSCell subclasses when the goal is to minimize the redraw code needed when the cell is drawn? Thanks a lot Patrick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Not sure what's wrong with this code to using NSUserDefaults...

2010-06-23 Thread Patrick William Walker
... beyond me but here it is. NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; [prefs setObject: @"120" forKey: @"Length"]; [prefs synchronize]; When the program is run in the iPhone simulator (v3.2, not using 4.0 yet), it just dies. Nothing on the console log s

Re: NSXMLParser initWIthData - Encoding?

2010-05-21 Thread Patrick Rutkowski
On May 21, 2010, at 1:29 PM, David Duncan wrote: > On May 21, 2010, at 10:23 AM, Patrick Rutkowski wrote: > >> Any API that accepts binary data needs to give at least a hint as to what >> format the binary data should be. Saying that just it accepts "data" is &

Re: NSXMLParser initWIthData - Encoding?

2010-05-21 Thread Patrick Rutkowski
On May 21, 2010, at 1:31 PM, Kyle Sluder wrote: > On Fri, May 21, 2010 at 10:23 AM, Patrick Rutkowski > wrote: >> Milder tone? No thanks. > > Awfully strong words from someone who waltzes onto a mailing list, > lambastes the documentation, and admits in the very next sent

Re: NSXMLParser initWIthData - Encoding?

2010-05-21 Thread Patrick Rutkowski
I really hope you're joking. Do you really not see that it's completely non-obvious if it's supposed to be UTF-8 or UTF-16? -Patrick On May 21, 2010, at 1:31 PM, Gary L. Wade wrote: > The name of the class makes it pretty obvious to everyone that the data is > XML. >

Re: NSXMLParser initWIthData - Encoding?

2010-05-21 Thread Patrick Rutkowski
to omit information about the format of binary data, then you're just a moron. I'm not saying that you're a moron for accidentally forgetting to document it, but if you want to say (as you seem to be doing) that it's OK to consciously leave it out, then you're just a

NSXMLParser initWIthData - Encoding?

2010-05-21 Thread Patrick Rutkowski
/apple_ref/occ/instm/NSXMLParser/initWithData: I'm still pretty new to XML though, does the encoding always have to be UTF-8, or perhaps always UTF-16? Either way, which encoding does initWithData expect to get? Does it perhaps detect which encoding is being used, based on the data you giv

Re: Framework linking errors

2010-05-15 Thread Patrick Rutkowski
want. If I link my framework dynamically against OpenSSL, then I force the clients of my framework to use the dynamic version of OpenSSL, which I also don't want. (correct me if I'm wrong on either of those points) -Patrick On May 15, 2010, at 11:29 PM, Patrick Rutkowski wrote: &g

Framework linking errors

2010-05-15 Thread Patrick Rutkowski
ect? I'm awfully tempted to do so. -Patrick ___ 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/Unsubsc

Xcode 3.2 - Missing iPhoneOS 2.2.1

2010-05-13 Thread Patrick M. Rutkowski
Is it just me, or is Xcode 3.2 missing the 2.2.1 version of the iPhone SDK? Can that be remedied somehow? Or is Apple intentionally dropped support there? -Patrick P.S. Is there a better list to be posting iPhone questions to? ___ Cocoa-dev mailing

Re: loaded object: (0x0)

2010-05-12 Thread Patrick M. Rutkowski
Wait, I take that back; I forgot this is an AppKit list, not a UIKit list. Yeah, you're right, in AppKit (unlike in UIKit) top-level un-parented objects don't get autoreleased. There's, so there's a leak there, yep. On Wed, May 12, 2010 at 4:28 PM, Patrick M. Rutkowski w

Re: loaded object: (0x0)

2010-05-12 Thread Patrick M. Rutkowski
mething_else" will not break anything, obviously END OF STORY! :-p If you want to tell me there's a problem somewhere there, then please point a specific step #, and be very descriptive; because I'm pretty darn sure I have it right. -Patrick On Wed, May 12, 2010 at 4:21 PM,

Re: loaded object: (0x0)

2010-05-12 Thread Patrick M. Rutkowski
Yeah, your wrong :-p After the whole Nib loading process, the main_object ends up having a retainCount of 1, and is also in the autorelease pool. So, it will be released in the future, no matter what (unless I retain it, of course; which I don't). -Patrick On Wed, May 12, 2010 at 4:

Re: loaded object: (0x0)

2010-05-12 Thread Patrick M. Rutkowski
nib loading process, but in the best case > I think you will have a leak there, in the worst case, a bad access. > > Rafael > > Le 12 mai 2010 à 14:57, Gustavo Pizano a écrit : > >> Hello Patrick, >> >> I don't know but I see weird the way you initialize the MyF

loaded object: (0x0)

2010-05-12 Thread Patrick M. Rutkowski
/TestApp.zip I could just be really tried today, did I make a silly type-o somewhere? -Patrick P.S. I tried changing the "main_object" property from assign to retain, but it didn't help. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: CCHmacInit - key?

2010-05-10 Thread Patrick M. Rutkowski
ay 10, 2010 at 12:28 PM, Patrick M. Rutkowski > wrote: >> I'm really not getting what the "key" argument to CCHmacInit() is >> supposed to be. I'm trying to implement oauth linked-in integration, > > Not really an answer to your question, but are you tryin

CCHmacInit - key?

2010-05-10 Thread Patrick M. Rutkowski
ve the chars "-" or "_". I'm really confused here. -Patrick ___ 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

self = [super init], nil?

2010-05-07 Thread Patrick M. Rutkowski
. But will this ever be the case with NSObject? -Patrick ___ 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/Unsubscr

"-arch i386" -- Still useful?

2010-05-06 Thread Patrick M. Rutkowski
Is the "-arch i386" argument to gcc (for building for i386 as opposed to x86_64). My fairly new iMac, for example, seems to be x86_64. Are there any intel macs which really are i386, and could not run x86_64 binaries? -Patrick ___ Cocoa-d

IB Plugin Container View and child management

2010-05-03 Thread Patrick Mau
nd remove the just-added instance, but that leads to a nice "assertion failure" in IB. Is there any way for a object to refuse itself to be dropped in certain locations? Thanks a lot Patrick ___ Cocoa-dev mailing list (Cocoa-dev@list

Re: #macdev/#iphonedev ban, in need of sympathy

2010-05-02 Thread Patrick M. Rutkowski
Sorry, this is all just really frustrating, and I guess I was running under the false assumption that #macdev/#iphone and the mailing lists are the same user community :-/ My apologies for the language. Your right, I shouldn't have posted this to the list at all. -Patrick On Sun, May 2, 20

#macdev/#iphonedev ban, in need of sympathy

2010-05-02 Thread Patrick M. Rutkowski
dy else. I wish I could put some sort of injunction on RTFM_FTW banning me, because I'm certain no other admins would. I'm not really sure what to do here. I'm really missing #macdev/#iphonedev right now :-( -Patrick P.S If you're on here RTFM_FTW, fuck you. Just leave me the fuck

Re: va_end() & [NSString initWithFormat:arguments:]

2010-04-29 Thread Patrick M. Rutkowski
Ah, that's pretty clear cut then. Got it, thanks :-) On Thu, Apr 29, 2010 at 10:49 PM, Ken Thomases wrote: > On Apr 29, 2010, at 9:44 PM, Patrick M. Rutkowski wrote: > >> Do I have to do a va_end() after using -[NSString initWithFormat:arguments:]? > > If you call va_st

va_end() & [NSString initWithFormat:arguments:]

2010-04-29 Thread Patrick M. Rutkowski
ents_ -Patrick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.appl

using coregraphics with vector art from illustrator

2010-04-19 Thread Patrick J. Collins
into xcode and use those paths in CG and stroke/fill them there? Is that possible? Patrick J. Collins http://collinatorstudios.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: [NSMutableArray array]

2010-04-08 Thread Patrick M. Rutkowski
Wow! Good stuff Michael :-) I can't believe I never noticed that. On Thu, Apr 8, 2010 at 3:07 PM, Michael Ash wrote: > On Thu, Apr 8, 2010 at 1:21 PM, Patrick M. Rutkowski > wrote: >> Agreed, but there's always the danger the +array method, which might >> actually

Re: [NSMutableArray array]

2010-04-08 Thread Patrick M. Rutkowski
hies. But, nonetheless I'm troubled that nobody in this thread has acknowledged that yet :-o -Patrick On Thu, Apr 8, 2010 at 12:37 PM, Bill Bumgarner wrote: > > On Apr 8, 2010, at 7:35 AM, Patrick M. Rutkowski wrote: > >> What I was worried about is that maybe NSMutableArray (or any

Re: IB Parses Class Names?

2010-04-08 Thread Patrick M. Rutkowski
; > Kevin > > On 7 Apr 2010, at 20:34, Kyle Sluder wrote: > >> On Apr 7, 2010, at 3:44 PM, "Patrick M. Rutkowski" >> wrote: >> >>> Is there a way to turn this IB feature off? >> >> No. Just give the object a name. Much better than hav

Re: Delayed Autorelease

2010-04-08 Thread Patrick M. Rutkowski
Ah, a very good point, I'll turn that on right away; I can't believe I forgot that. Thanks :-) On Thu, Apr 8, 2010 at 11:40 AM, Joar Wingfors wrote: > > On 8 apr 2010, at 08.37, Patrick M. Rutkowski wrote: > >> Another mistake was self.array being initialized as >>

Re: Delayed Autorelease

2010-04-08 Thread Patrick M. Rutkowski
= [[NSMutableArray alloc] init] when it should have been self.array = [NSMutableArray array] I'm still somewhat new to this :-) I totally get what's going on, I'm just not good at spotting the usual mistakes yet; and I'm a bit sleepy at the moment. Yawn, -Patrick On Thu, Apr 8, 2010 at

  1   2   >