UIGraphicsBeginImageContext thread safety

2009-10-01 Thread Andrew
, and they are thread safe. what is it doing that renders it not thread safe, does anyone know? Yours cheerfully, Andrew Bush ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

Re: UIGraphicsBeginImageContext thread safety

2009-10-01 Thread Andrew
global "ui graphics context" variable use by all of UIKit to indicate where all UIKit based drawing should go). right, that makes sense. that is probably a speed optimisation for the gui drawing. ah well, its a shame, its a lovely simple api

Original iPhone animation performance

2010-05-19 Thread Andrew
any known tricks or things I can do that might improve things on the older hardware? Thanks for any help. - Andrew Bush ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Co

Re: Original iPhone animation performance

2010-05-19 Thread Andrew
Hi Ricky, that is interesting, for some reason I assumed that the presentation layer would take care of caching the presented view. ok, I will try that and see how it goes, thanks. is there anything else you can think of that might make a difference? - Andrew Bush > >> Im wri

Add annotations to pdf on iPhone

2010-06-26 Thread Andrew
Hello, List I know that adding annotations to pdf is supported on Mac OS X, PDFAnnotations, but i can not find out such object for iOS, after googling, seems this functionality is supported on iPad now, but what about iPhone? Can anyone give me a hint? Thanks in advance. XiaoGang___

Data Protection on iOS 4 with Core Data

2010-07-15 Thread Andrew
d party obtains the iPhone and mounts its hard drive on their computer, the core data store will still be as inaccessible to them as possible. Thanks for any help. - Andrew Bush ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Is slowing down bindings updates possible?

2012-01-12 Thread Andrew
ld do something like that and use timer, but it would be a lot of messy code. I could also just delay updating the _bytesDownloaded on a queue. Or a third idea is to cache the estimated calc time and rate and then only recalculate the value at most once per second. Any other brighter ideas? Thoughts

Re: Is slowing down bindings updates possible?

2012-01-14 Thread Andrew
ote: > >> Hi Andrew, >> >> On Jan 13, 2012, at 6:57 , Andrew wrote: >> >>> The result of this is that the UI updates really frequently and the >>> estimated time to complete and the download rate jump around a lot. I >>> would love it if I c

NSTask terminates when NSApplication exits

2012-01-18 Thread Andrew
I am trying to write a program that maintains different installs of another program including launching the program. To do so, I am using NSTask. Now when I quit my cocoa app. the NSTask app dies. The task that the NSTask is running is a Java program, not sure if that makes a difference. According

Re: NSTask terminates when NSApplication exits

2012-01-18 Thread Andrew
12:55 PM, Scott Ribe wrote: > On Jan 18, 2012, at 11:59 AM, Andrew wrote: > >> I can probably find out the answer by trying different things, but I'd >> like to get a better insight for what is going on and why the child >> task is terminating. > > You may want

Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?

2012-01-26 Thread Andrew
to open a new tab as opposed to a window 2. not have to run a program 3. it does not open the default terminal "theme" Thanks, Andrew ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?

2012-01-26 Thread Andrew
and have it open a new tab instead of window. On Thu, Jan 26, 2012 at 10:13 AM, Andrew wrote: > I would like to perform the same logic as the "New Terminal Tab at Folder" > service in Finder in my Cocoa app. The only code I found via Google is all > using AppleScript to ope

Re: Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?

2012-01-26 Thread Andrew
TerminalSettingsSet *settings = [termApp startupSettings]; TerminalTab *newTab = [termApp doScript:cmd in:window]; [newTab setCurrentSettings:settings]; [newTab setSelected:YES]; [termApp activate]; } On Thu, Jan 26, 2012 at 11:02 AM, Andrew wrote: > > Well, I found this: > http://co

NSTableView tooltip with a view based table?

2012-02-01 Thread Andrew
quot;Table Cell View" it is not displayed. I've also tried just binding the tooltip of an NSTextView in the row view, and still have had no luck. What is the correct way to show a tooltip for a row in a view based NSTableView? Thank you, Andrew _

NSString vs NSPathStore2

2008-05-22 Thread andrew
Hi, I am then trying to populate an NSTableView with a filename obtained from a NSOpenPanel. The problem is that NSOpenPanel seems to return a NSPathStore2 and not an NSString, which seems to be causing problems. Is there are a way to convert NSPathStore2 to an NSString? Thanks, Andrew

QCView loadCompositionFromFile

2008-06-02 Thread andrew
Hey, I'm trying to load a composition into a QCView using the loadCompositionFromFile. I was obtaining the path from a NSOpenPanel but loadCompositionFromFile was returning NO. I tried passing in a hard coded path as a parameter, getting the same result NO.I'm sure the paths are right as I

Cocoa binding for NSTableView and a background object list

2008-11-04 Thread Andrew
Hi,List I have a project that need use the Cocoa Bindings. But I am not familiar with this mechanism. So, I post my question here for some help. Any comments will be appreciated sincerely. The functionality of my project like this, once the application is launched, one thread will

cocoa binding for the data maintained by the other thread.

2008-11-11 Thread Andrew
Hi, I have read some documents about the Cocoa Bindings. And I got a question here for more comments. If I use the cocoa binding technology in my application, my application must fully follow a Model-View-Controller paradigm. The views display and edit that data, and controllers mediate bet

NSCollectionViewItem lifecycle

2016-08-03 Thread Andrew Keller
views are also never deallocated. Not really knowing how NSCollectionView works under the hood, I’m unsure of the next step to troubleshoot this. Any ideas? On a related note, what is the expected lifecycle of an NSCollectionViewItem object? Thanks, - Andrew Keller

NSImage drawInRect deadlock

2016-08-08 Thread Andrew Keller
serially, or is there something I’m doing wrong? Thanks, - Andrew Keller ___ 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: NSImage drawInRect deadlock

2016-08-09 Thread Andrew Keller
ot >> thread-safe. > > I wouldn’t jump immediately to thread-unsafety. It’s possible that > Andrew is simply exhausting the thread pool. > > Andrew, are you doing anything to limit the amount of decode operations > you’re putting on the global queue? Not presently. Under nor

Re: NSImage drawInRect deadlock

2016-08-09 Thread Andrew Keller
Am 09.08.2016 um 3:59 nachm. schrieb Kyle Sluder : > On Tue, Aug 9, 2016, at 07:38 AM, Andrew Keller wrote: > >> I was under the impression from the docs that macOS >> handles the thread pool “automatically”. > > Mike Ash did a good job explaining why this isn’t as “a

Re: NSImage drawInRect deadlock

2016-08-09 Thread Andrew Keller
Am 09.08.2016 um 7:38 nachm. schrieb Andrew Keller : > Am 09.08.2016 um 3:59 nachm. schrieb Kyle Sluder : >> On Tue, Aug 9, 2016, at 07:38 AM, Andrew Keller wrote: >> >>> I was under the impression from the docs that macOS >>> handles the thread pool “automatic

Re: NSImage drawInRect deadlock

2016-08-10 Thread Andrew Keller
Am 10.08.2016 um 2:48 vorm. schrieb Quincey Morris : > On Aug 9, 2016, at 20:47 , Andrew Keller <mailto:and...@kellerfarm.com>> wrote: >> >> 2. When utilizing Mike’s approach to limiting the number of parallel tasks >> down to, say, 1-8, I have been completely un

Launch, connect, communicate

2016-08-15 Thread Andrew Keller
d in being App Store compliant. I don’t know if this will make it there, but being App Store compliant is also something I need to learn, so I figure I may as well shoot for it. Any ideas? Or, are there any other mailing lists that may be more closely related to this topic? Thanks, - Andrew Ke

Re: Launch, connect, communicate

2016-08-19 Thread Andrew Keller
Am 16.08.2016 um 8:35 vorm. schrieb Jens Alfke : > On Aug 15, 2016, at 7:26 PM, Andrew Keller <mailto:and...@kellerfarm.com>> wrote: >> >> 1. If the main Plot app is _not_ running in the current Aqua session, then >> launch a new copy in the current Aqua sess

Database Access and Swift? (ODBC, native libraries)

2014-09-21 Thread Andrew Satori
Well folks, it's me again. Your slightly off kilter and sometimes obsessed with database stuff developer... With the upcoming migration to Swift as the language of choice for OS X development, there is a decided lack of tools for getting from Cocoa to the RDBMS' of the world, and unfortunately

Machine sleep & wake notifications in a daemon

2015-01-08 Thread Andrew Keller
a GUI application. Is it possible to have a Cocoa-style event queue in a daemon, or is there another way to receive machine sleep and wake notifications from the OS in a daemon? Thanks, - Andrew Keller ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: Machine sleep & wake notifications in a daemon

2015-01-08 Thread Andrew Keller
On Jan 8, 2015, at 5:20 PM, Ken Thomases wrote: > On Jan 8, 2015, at 4:03 PM, Andrew Keller wrote: > >> I would like to receive machine sleep and wake notifications in my daemon. >> In my Cocoa GUI application, I was able to easily follow the sample code >> und

Re: Machine sleep & wake notifications in a daemon

2015-01-08 Thread Andrew Keller
On Jan 8, 2015, at 6:11 PM, Greg Parker wrote: > On Jan 8, 2015, at 2:54 PM, Andrew Keller wrote: > >> On Jan 8, 2015, at 5:20 PM, Ken Thomases wrote: >> >>> On Jan 8, 2015, at 4:03 PM, Andrew Keller wrote: >>> >>>> I would like to receive m

Re: Machine sleep & wake notifications in a daemon

2015-01-12 Thread Andrew Keller
On Jan 8, 2015, at 7:00 PM, Andrew Keller wrote: > On Jan 8, 2015, at 6:11 PM, Greg Parker wrote: > >> On Jan 8, 2015, at 2:54 PM, Andrew Keller wrote: >> >>> On Jan 8, 2015, at 5:20 PM, Ken Thomases wrote: >>> >>>> On Jan 8, 2015, at 4:03 PM

Modifying row rect indent in NSOutlineView

2015-01-29 Thread Andrew White
han always indentationPerLevel ? ) Thanks -- Andrew ___ 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: Modifying row rect indent in NSOutlineView

2015-01-29 Thread Andrew White
On 30/01/2015 16:04, Quincey Morris wrote: On Jan 29, 2015, at 20:45 , Andrew White mailto:andrew.wh...@audinate.com>> wrote: I tried subclassing NSOutlineView and catching frameOutlineOfCellAtRow, adding to theRect.origin.x and subtracting from theRect.size.width. This didn't see

Human-understandable process name

2015-02-13 Thread Andrew Keller
process in question is a helper app with a different name. Is this ability replicable in third party applications? Thanks, - Andrew Keller ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: NSDictionary, allKeys and the NSAutoreleasePool

2009-09-03 Thread Scott Andrew
"ar" is not a member of "d"i. allKeys creates an autoreleased NSArray with the keys values retained in indexes. "ar" is placed in the auto release pool when it is created in the allKeys call. When you call [autorelease release] the items are freed when you since the pool is released and fre

Re: Trouble with NSButtonCell

2009-09-03 Thread Scott Andrew
I think you need to create a subclass of NSButton that uses your cell. Then use setAction and setDoubleAction. Scott On Sep 3, 2009, at 7:41 AM, Dave DeLong wrote: Unfortunately, "setDoubleAction:" is not a method on NSCell or any of its subclasses (except NSPathCell). Really all the BWTo

Re: NSDictionary, allKeys and the NSAutoreleasePool

2009-09-03 Thread Scott Andrew
mmalc Crawford wrote: On Sep 3, 2009, at 7:56 AM, Scott Andrew wrote: As Cocoa documentation states all items returned from a message are autoreleased unless otherwise stated in the documentation for the API call. The documentation emphatically does not state that. The basic rules are

NSComboboxCell + setButtonBordered:

2009-09-04 Thread Andrew Shamel
Hi all, I am having trouble with NSComboBoxCell's setButtonBordered: setting, having just updated to the latest XCode+IB versions in Snow Leopard. It appears that my choices are now between a bordered button with one arrow (setButtonBordered:YES) or a bordered button with two arrows (set

Malloc error: GC operation on unregistered thread...

2009-09-08 Thread Andrew Madsen
;m guessing there's something about the intricacies of actually using garbage collection that I'm missing. Any pointers? Thanks! Andrew Madsen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Re: NSString and UIWebView load

2009-09-11 Thread Andrew Farmer
On 11 Sep 2009, at 06:59, Dragos Ionel wrote: Is the following code supposed to run correctly? NSString* *htmlContent* = ...;// very long html content UIWebView* webView = [[UIWebView alloc] initWithFrame:...]; [webView loadHTMLString:*htmlContent* baseURL:...]; //assume this will take som

Re: sprintf and 64-bit integers

2009-09-14 Thread Andrew Farmer
On 14 Sep 2009, at 11:48, Sean McBride wrote: On 9/13/09 12:01 PM, Jens Alfke said: It would be best to convert all your sprintf calls to snprintf, which is a safer equivalent that won't overflow the buffer. Yes, sprintf is pure evil. snprintf is less evil. Also, I recommend adding -fstack-p

Re: NSString vs. encoding

2009-09-17 Thread Andrew Farmer
On 16 Sep 2009, at 22:55, Johan Kool wrote: Thanks so much!! That is indeed the case! I now use strunvis and it's all done in just 4 lines of code. (Well, except that I should still handle a returned error code.) int len = [stringA lengthOfBytesUsingEncoding:NSUTF8StringEncoding]; c

Re: Making a new "ICNS file" with NSImage

2009-09-17 Thread Andrew Farmer
On 17 Sep 2009, at 19:39, Squ Aire wrote: My problem is this: I want to derive a new "icon file" (simulated by an NSImage somehow) which has some margins applied to it. The margins on each side should be the size of the area being drawn on divided by 100. So for instance, if we are drawing t

Crash in +[NSMethodSignature signatureWithObjCTypes:]

2009-09-28 Thread Andrew Thompson
It seems when I push signatureWithObjCTypes: hard - i.e. submitting about 250 tasks into NSOperationQueue, signatureWithObjCTypes will occasionally crash. By occasionally, I mean about 1 time in 10 to about 1 time in 15 on a dual core machine: Thread 68 Crashed: Dispatch queue: com.apple.r

NWPickerField a new iPhone control to share.

2009-10-07 Thread Scott Andrew
I have made a new iPhone control I would like to share. it is NWPickerField a new read only combo box like control for the iPhone. Check out: http://newwavedigitalmedia.com/?p=79 Scott Andrew ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: A good Obc-C framework for sending email?

2009-10-15 Thread Andrew Farmer
On 15 Oct 2009, at 13:34, Ben Haller wrote: Hi all. I need a good Obj-C framework for sending email. I used to use the Message.framework associated with Apple's Mail, but they killed that a long time ago, sadly. Then I used Pantomime; but it seems to also be abandoned, now, and it is cra

Re: NSURLRequest SSL Mac vs iPhone

2009-10-16 Thread Andrew Farmer
On 16 Oct 2009, at 00:48, Greg Hoover wrote: I have the same piece of code making a secure request to a server in a Mac application and in an iPhone app. Both use an NSURLRequest with exactly the same settings, message, body, etc. On the Mac, the request succeeds, returning the data expect

Re: UITextField formatting for IP Address

2009-10-16 Thread Andrew Farmer
On 16 Oct 2009, at 17:54, Alex Kac wrote: Here is my code, btw. It works OK, but it still has the issue of moving the cursor to the end. Perhaps there is no way to do this on the iPhone - I just don't want to bang my head for hours. - (void)formatForIP:(UITextField*)textField string:(NSStrin

Re: Getting a view's size?

2009-10-19 Thread Andrew Farmer
On 18 Oct 2009, at 22:45, patrick wrote: Thank you! That was exactly the problem. :) While we're at it, don't forget about NSStringFromRect(). No need to write format strings yourself when Apple's done it for you -- and written a parser to go with (NSRectFromString). __

Re: Crash drawing image

2009-10-24 Thread Andrew Farmer
On 24 Oct 2009, at 10:36, slasktrattena...@gmail.com wrote: And after the crash, gdb is confused and can't get info about the process? Sort of. I think the problem is no app can have keyboard focus as long as the screensaver is running/frontmost. So Xcode is not responding to keyboard events un

Re: Getting a handle on inf

2009-10-26 Thread Andrew Farmer
On 26 Oct 2009, at 12:11, Ian Piper wrote: ...and I still get a failed build with this message: Expecting inf; we got inf Which seems odd. And internally, this is because the IEEE float machinery guarantees that all infinite and NaN values compare as not-equal to each other, so that 1/0 !

Preventing NSDocument's "The document has been moved" alert

2009-11-03 Thread Andrew Madsen
27;t cause the alert to stop showing up. I'm not sure how else NSDocument might be tracking renaming/moving/ modification of files. Any pointers? Thanks, Andrew Madsen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Re: beginner question, NSNumber, NSDecimalAsNumber

2009-11-08 Thread Andrew Farmer
On 8 Nov 2009, at 08:53, Jay Swartzfeger wrote: Hi all, I'm an absolute beginner to Objective-C (and programming in general). I have lots of books on order, but I've been messing with Xcode/Cocoa/iPhone SDK with online resources while I wait. My question -- for my next project, I want to do a si

Re: beginner question, NSNumber, NSDecimalAsNumber

2009-11-09 Thread Andrew Farmer
On 9 Nov 2009, at 10:49, Jeffrey Oleander wrote: Last I looked, 1-bit count was an assembly/ hardware instruction. Getting the highest order on-bit required a little cleverness. Take a look at __builtin_clz(). (It maps to 'bsr' on x86.) ___ Cocoa-de

Re: Multiple variable rules in for() statement

2009-11-13 Thread Andrew Farmer
On 12 Nov 2009, at 11:50, David Ross wrote: > GCC does not like declaring variables in a for statement. Adding -std=c99 or -std=gnu99 to the compiler flags will fix that. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: Close/Minimize the app

2009-11-13 Thread Andrew Farmer
On 11 Nov 2009, at 21:23, kirankumar wrote: > this will help you > keep this 3lines of code in awakeFromNib, and mpwindow is you are window name. > > id closeButton = [mpWindow standardWindowButton:NSWindowCloseButton ]; > [closeButton setAction:@selector(closeapp:)]; > [closeButton setTarget:self

Re: Drag-Move the Transparent windowed app over the screen

2009-11-13 Thread Andrew Farmer
On 12 Nov 2009, at 01:58, kirankumar wrote: > goto attributes for your window ,enable the texture checkbox so that > you can drag your window. While this does have the desired effect, there is a much more direct approach available (which Dave Keck has hinted at)._

Re: Keeping NSView square

2009-11-18 Thread Andrew Farmer
On 18 Nov 2009, at 04:38, Henri Häkkinen wrote: > I'm making a custom NSView derived class and I need the view to have a fixed > width/height ratio at all times, specifically I would like the view to stay > square. I am trying to override the setFrame: method like this... Don't. Arbitrarily chan

Re: Keeping NSView square

2009-11-19 Thread Andrew Farmer
On 19 Nov 2009, at 00:10, Kyle Sluder wrote: > 2009/11/18 Andrew Farmer : >> Don't. Arbitrarily changing the size of your view in setFrame: makes AppKit >> lose track of what size your view was, making it impossible to restore the >> original size later. Cut the view d

NSTextView, Bindings, and Display Updates

2009-11-19 Thread Andrew Shamel
Hi All, I'm having a strange behavior with an NSTextView bound through Interface Builder to a Core Data backing. The textView is part of a standard master-detail setup, and is not updating its value when the selection is changed in the master list. The value only displays after the mouse has

Re: How can I not block hotkey from other apps

2009-11-24 Thread Andrew Farmer
On 23 Nov 2009, at 07:17, Symadept wrote: > I managed to get my app support for registering hotkeys and using it. But > unfortunately if I register Cmd P as hot key in my app, no one in the system > can use this hotkey to print unless I deregister it. How can I make it not > block others. If you d

Re: Better sorting using threads?

2010-03-12 Thread Andrew James
All, My concern is that keeping traditional C-arrays in sorted order means 1) finding the location for insert ( O(n) ) 2) copying a range of contiguous memory to make the location available 3) copying in new value I've made the assumption that NSArray wraps an old school contiguous C-style arra

Re: Deleted Ressource folder

2010-03-14 Thread Scott Andrew
If you selected the "Also Move To Trash" option check the trash can, if it hasn't been emptied.. This is where source control comes in handy. Even if its using git to keep source control local in the project folder. Scott On Mar 14, 2010, at 6:57 AM, Marx Bievor wrote: > Hi, > I accidentally

Re: Better sorting using threads?

2010-03-15 Thread Andrew James
I do like about STL ( don't want to digress too far in this direction ) is that documentation provides gaurantees about Big O notation. Do this type of gaurantee exist anywhere in Cocoa's containers? --aj  From: Jeffrey Oleander To: Gwynne Raskind ;

Class instance defaults: e.g. NSBrowser

2010-03-17 Thread Andrew James
I am a relative newbie to Cocoa so I trying to make sure that my code reflects Cocoa's coding culture. I'm interested in whether or not instances of Cocoa classes can be expected to display default behavior.  I'll use NSBrowser's - (BOOL)sendsActionOnArrowKeys as an example. In Apple's document

NSBrowser and tab order

2010-03-18 Thread Andrew James
I have a nib file set up in Interface Builder with a window containing a single NSBrowser. I have set the NSBrowser as the window's initialFirstResponder... but for some reason when the window is displayed the NSBrowser does not receive keyboard focus and will not receive keyboard focus until I

Re: NSBrowser and tab order

2010-03-18 Thread Andrew James
arning experience. :) Cheers, --aj ____ From: Corbin Dunn To: Andrew James Cc: list-cocoa-dev Sent: Thu, March 18, 2010 7:40:06 AM Subject: Re: NSBrowser and tab order Aj -- I believe this was a bug fixed in 10.6; maybe 10.5. What OS are you on? The work around is to set it up in awakeFrom

Re: App modal window and secondary thread

2010-03-19 Thread Andrew James
You can also consider creating a singleton class that wraps the worker thread so that you don't always bear the cost of creating the thread just to do some work.  This singleon class does need to be thread safe. Once that's been done provide a way to set the data that needs to be shared and the

Re: Cant read second table from same sqlite database iphone

2010-04-11 Thread Andrew Farmer
On 10 Apr 2010, at 18:02, charisse napeÿf1as wrote: >//get the name and the score >int iDen = sqlite3_column_int(statement, 0); >NSString* name = [NSString stringWithUTF8String:(char > *)sqlite3_column_text(statement, 0)]; Surely column 0 cannot be both an

Re: NSPipe (NSFileHandle) writedata limit?

2010-04-12 Thread Andrew Farmer
On 12 Apr 2010, at 10:56, McLaughlin, Michael P. wrote: > Greg Guerin wrote >> The fundamental design is "send all data before looking for any >> results". This is inherently synchronous, even though two or more >> processes are involved. If the subtask is designed to "read all data >> before pro

Re: Help with crash in -[NSKeyValueNestedProperty matchesWithoutOperatorComponentsKeyPath:]

2010-04-17 Thread Scott Andrew
I acutally think i May have found this one.. We had some racing conditions that seems to have been reeking havoc in our heavily threaded code and the KVO we are using.. Scott On Apr 15, 2010, at 6:12 PM, Ken Thomases wrote: > On Apr 15, 2010, at 11:03 AM, > wrote: > >> Unfortunately i have

Re: [iPhone] How to scroll to UITableView footer view

2010-05-02 Thread Scott Andrew
What about making the rect your view's actual bounds. Something like... CGRect footerBounds = [footerView bounds]; CGRect footerRectInTable = [tableView convertRect:footerBounds fromView:footerView]; [tableView scrollToRect:footerRectInTable animated:YES]; This should scroll to the footer view

Simple bindings example

2010-05-14 Thread Andrew White
runs. From a user perspective, this is read-only: the user can't edit it. And I want to do it with bindings. I cannot for the life of me figure how to plumb it. And how to get KVO to work. Does anyone have a minimal example of this? (XCode 3.2, 10.6) Thanks -- An

Re: Figuring out what's causing redrawing

2010-05-16 Thread Scott Andrew
Just a simple question. Do you have overlapping views going on? If you are overlapping a sibling that is being told to redraw, you will get redraw every time the sibling redraws.. Scott On May 13, 2010, at 12:52 PM, Nick Zitzmann wrote: > I've tried searching around but haven't found an answe

Re: how to bring up a keyboard as in UITextField

2010-05-23 Thread Scott Andrew
I did something similar for my IPhone combo box. See http://newwavedigitalmedia.com/?p=79. The source is on GitHub as well at http://github.com/scottandrew/NWPickerField. Sent from my iPad On May 23, 2010, at 12:32 PM, Alejandro Marcos Aragón wrote: > Hi everyone, > > I'm trying to reprod

iPad animations are backwards for some orintations.

2010-05-25 Thread Scott Andrew
So i have an app that I want to use the curl up UIView animation transition in. however when the iPad his held in either the upside down portrait or upside down landscape (button on right) the transitions are backwards. All controls on the views move however.

Re: detecting touch and hold vs touch in UIButton

2010-06-05 Thread Scott Andrew
I believe the way to do this is to setup a timer on touchDown to fire once after X number of seconds. Your touchUp and touchCancelled should kill the timer if the timer is exists and is not invalidated. If you hit the timer you are being held. When the timer is hit you restart the timer again fo

Re: detecting touch and hold vs touch in UIButton

2010-06-06 Thread Scott Andrew
You still need that timer. Especially for non 3.2. If you get your touchEnded before your timer is reached it was just a tap. Scott Sent from my iPad On Jun 6, 2010, at 8:54 AM, Alejandro Marcos Aragón wrote: > Hi Matt, > > Thanks for your answer. Still, I don't think that solves the pro

Re: DnD International No symbol

2010-06-17 Thread Andrew Merenbach
enhancement request, you can go to: http://bugreport.apple.com. Unless you know that already, and just meant how to phrase it--in that case, I'm unsure as to the best way and should probably leave it to other CocoaDevvers to assist you. Cheers, Andrew On Jun 17, 2010, at 5:27 PM, Tony R

NSViewController and key value coding

2010-07-12 Thread Andrew James
All, I've been writing way to much code to populate an NSPopUpButton with an array that can change at any moment.  Due to that, I'd rather use Cocoa's Key Value Coding technology.  I've read Apple docs over the past two days in regards to key value coding and observing. To really cement my und

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Andrew Thompson
But doesn't it seem entirely reasonable that apps signed by the same vendor (for example) be able to share files? I mean in a safe location perhaps with a limited quota of space? Cookies and client side storage in HTML 5 allow this (not exactly the same but still), but native apps have no optio

Sandboxing and NSTask

2011-08-14 Thread Andrew Satori
Having spent the weekend trying to migrate to supporting sandboxing, I think I have hit a snag that may well be terminal. The situation: My application contains a bundle that embeds a set of programs (a local instance of the PostgreSQL RDMS). Outside of the sandbox, it properly creates the

Core Data to many relationship deletion causing exception

2011-08-16 Thread Andrew Kinnie
Greetings, I have an iOS 4 + app, which is now being retrofitted to use Core Data. I have an Entity "Article" which has a to-many relationship to another Entity "MediaResource" and I generated NSManagedObject subclasses for each. The relationship is called "media" and is set to be optional, a

Re: Core Data to many relationship deletion causing exception - SOLVED?

2011-08-16 Thread Andrew Kinnie
_NSSet0 singleton object. Thanks On Aug 16, 2011, at 3:45 PM, Keary Suska wrote: > On Aug 16, 2011, at 12:18 PM, Andrew Kinnie wrote: > >> I have an iOS 4 + app, which is now being retrofitted to use Core Data. I >> have an Entity "Article" which has a to-many rela

Core Data Xcode 4 question

2011-09-01 Thread Andrew Kinnie
the Generate Managed Object Subclass menu item would create them in the .h but not implement them in the .m? I ask because I am concerned that I am missing something about Core Data. Thanks in advance. Andrew PS: The method are the to-many relationship methods of the form: - (void

Re: Core Data Xcode 4 question

2011-09-01 Thread Andrew Kinnie
Thanks. Maybe I'll try that. On Sep 1, 2011, at 5:10 PM, Quincey Morris wrote: > On Sep 1, 2011, at 13:19 , Andrew Kinnie wrote: > >> I used Xcode 4 to generate the initial subclass, then added other business >> rules methods as needed. I noticed, however, that t

Re: Core Data Xcode 4 question

2011-09-01 Thread Andrew Kinnie
Last I looked at mogenerator, it didn't support Xcode 4. On Sep 1, 2011, at 5:21 PM, Sean McBride wrote: > On Thu, 1 Sep 2011 16:19:07 -0400, Andrew Kinnie said: > >> I have a Core Data implementation, using generated subclasses of >> NSManagedObject for some of my

Re: Core Data Xcode 4 question

2011-09-02 Thread Andrew Kinnie
1, 2011, at 11:19 PM, Steve Steinitz wrote: > Hi Andrew, > > I get this mailing list in digest form so hope I'm not too late to chime in > with what a wonderful tool > Jonathan “Wolf” Rentzsch has given to us and has continued to maintain over > the years. I never did u

Re: Private Method?

2011-11-09 Thread Andrew Thompson
Java, running with a byte code verifier and a strict security manager enabled does a reasonably through job of enforcing private methods at runtime. You can defeat it, but not typically with remotely loaded code such as applets. It's a continuum of design choices in languages. You're right that

Weird Core Data crash

2011-11-29 Thread Andrew Kinnie
ng performSelectorInBackground. One thing we considered was adding the strings to the set using copy rather than directly adding the string. However, as we have not been able to replicate the crash, we have no idea if this would solve whatever problem there is. An

Re: Weird Core Data crash

2011-11-30 Thread Andrew Kinnie
hread based mocs for the fairly heavy lifting. Thanks again. Andrew On Nov 29, 2011, at 8:51 AM, Fritz Anderson wrote: > On 29 Nov 2011, at 7:21 AM, Andrew Kinnie wrote: > >> This method may be called from the main thread or from a background thread, >> but

Text system glitch - lines across text view

2011-12-25 Thread Andrew Hughes
he bug/issue typically occurs when I start hitting "return", which causes the pagination algorithm and layout system to kick in, leaving behind the lines and bold-looking text. It always clears if I scroll or click the mouse over it or highlight that area. Many thanks! Hopefully somebody can help

Re: Text system glitch - lines across text view

2011-12-28 Thread Andrew Hughes
the text, where it appears to be drawn twice and looks "bold" compared to the rest of the text, is still there. It is almost surely cause by some problem in the background-foreground pagination interaction because it doesn't happen when I test the program paginating foreground onl

Animation

2012-01-01 Thread Andrew Coad
Can anyone advise on any tools/techniques for producing animations? I have a number of drawings that I want to animate. Andrew Coad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Drawing images on top of each other

2011-02-03 Thread Andrew Coad
w image? Apologies is this is a hopelessly 'newbie' question. Andrew Coad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

RE: Drawing images on top of each other

2011-02-04 Thread Andrew Coad
>> You probably want either kCGBlendModeCopy That fixed it. Thanks. Kicking myself that I didn't see that blend mode... Andrew Coad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Quick Look Preview with Scrollbar

2011-02-13 Thread Andrew Madsen
I'm writing a Quick Look Plug-in to generate previews of my application's (Core Data) documents. I've got the generator working ok with one problem. If the document is large/long, and I return an preview that is say 5000 pixels high, Quick Look scales the preview image instead of putting it in a

Getting NSScrollView to ignore scrolling

2011-02-19 Thread Andrew Shamel
HI All, I have a NSTableView/NSScrollView setup that I've configured automatically to resize to contain the content of the table. This may sound silly, but I don't want scrolling behavior, but NSTableView seems to be designed to be inside a NSScrollView. My question is this: how do I get th

Re: Getting NSScrollView to ignore scrolling

2011-02-20 Thread Andrew Shamel
Hurrah! It was as easy as this: - (void)scrollWheel:(NSEvent *)theEvent { [[self nextResponder] scrollWheel:theEvent]; } Thanks, y'all! — andy On Feb 19, 2011, at 4:48 PM, Quincey Morris wrote: > On Feb 19, 2011, at 16:25, Peter Lübke wrote: > >>> My question is this: how do I get t

Re: UI Design on iPad

2011-04-21 Thread Scott Andrew
Don't give up on UIKit. You will find you can do alot with UIKit. I have used UIKit extensively for several large custom projects with great results. To see the UIKit used to its fullest look at: Disney Second Screen: Tron Edition - http://itunes.apple.com/us/app/disney-second-screen-tron/id426

  1   2   3   4   5   6   7   8   >