Re: Swift function overloading - invoking func with specific parameter (in place of Any parameter) on passing Any object

2019-10-28 Thread Andrew Thompson via Cocoa-dev
and Person share nothing in common I would avoid overloading here and just write displayPerson etc, but I’m trying to answer your question and not redesign your whole solution. Give it some thought. Andrew >> On Oct 28, 2019, at 1:03 AM, Devarshi Kulshreshtha >> wrote: >  >

Re: Swift function overloading - invoking func with specific parameter (in place of Any parameter) on passing Any object

2019-10-27 Thread Andrew Thompson via Cocoa-dev
otocol. 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/Update your Subscription:

Changing NSUserNotificationAlertStyle

2017-09-01 Thread Andrew Keller
for the two apps to communicate? For example, I see that XPC services aren’t allowed to present UIs (not sure if that extends to NSUserNotification). Thanks, - Andrew Keller ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Times in other cities

2017-05-15 Thread Andrew Thompson
. Andrew. > On May 15, 2017, at 9:17 AM, Eric E. Dolecki <edole...@gmail.com> wrote: > > Europe/London = BST though, correct? > > > > > >> On Mon, May 15, 2017 at 9:06 AM Andrew Thompson <lordpi...@mac.com> wrote: >> >> >> > O

Re: Times in other cities

2017-05-15 Thread Andrew Thompson
different meanings 2. You'll automatically get support for daylight savings (summertime) 3. More readable in code Andrew ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the l

Re: Launch, connect, communicate

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

Launch, connect, communicate

2016-08-15 Thread Andrew Keller
sted 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: NSImage drawInRect deadlock

2016-08-10 Thread Andrew Keller
Am 10.08.2016 um 2:48 vorm. schrieb Quincey Morris <quinceymor...@rivergatesoftware.com>: > On Aug 9, 2016, at 20:47 , Andrew Keller <and...@kellerfarm.com > <mailto:and...@kellerfarm.com>> wrote: >> >> 2. When utilizing Mike’s approach to limiting the numbe

Re: NSImage drawInRect deadlock

2016-08-09 Thread Andrew Keller
Am 09.08.2016 um 7:38 nachm. schrieb Andrew Keller <and...@kellerfarm.com>: > Am 09.08.2016 um 3:59 nachm. schrieb Kyle Sluder <k...@ksluder.com>: >> On Tue, Aug 9, 2016, at 07:38 AM, Andrew Keller wrote: >> >>> I was under the impression from the docs th

Re: NSImage drawInRect deadlock

2016-08-09 Thread Andrew Keller
Am 09.08.2016 um 3:59 nachm. schrieb Kyle Sluder <k...@ksluder.com>: > 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 explainin

Re: NSImage drawInRect deadlock

2016-08-09 Thread Andrew Keller
e NSImage _cache_ is shared and (apparently) not >> 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 pu

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

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

Human-understandable process name

2015-02-13 Thread Andrew Keller
the 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: 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 andrew.wh...@audinate.com mailto:andrew.wh...@audinate.com wrote: I tried subclassing NSOutlineView and catching frameOutlineOfCellAtRow, adding to theRect.origin.x and subtracting from theRect.size.width

Modifying row rect indent in NSOutlineView

2015-01-29 Thread Andrew White
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/Update your

Re: Machine sleep wake notifications in a daemon

2015-01-12 Thread Andrew Keller
On Jan 8, 2015, at 7:00 PM, Andrew Keller and...@kellerfarm.com wrote: On Jan 8, 2015, at 6:11 PM, Greg Parker gpar...@apple.com wrote: On Jan 8, 2015, at 2:54 PM, Andrew Keller and...@kellerfarm.com wrote: On Jan 8, 2015, at 5:20 PM, Ken Thomases k...@codeweavers.com wrote: On Jan 8

Re: Machine sleep wake notifications in a daemon

2015-01-08 Thread Andrew Keller
On Jan 8, 2015, at 6:11 PM, Greg Parker gpar...@apple.com wrote: On Jan 8, 2015, at 2:54 PM, Andrew Keller and...@kellerfarm.com wrote: On Jan 8, 2015, at 5:20 PM, Ken Thomases k...@codeweavers.com wrote: On Jan 8, 2015, at 4:03 PM, Andrew Keller and...@kellerfarm.com wrote: I would

Machine sleep wake notifications in a daemon

2015-01-08 Thread Andrew Keller
. 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) Please do

Re: Machine sleep wake notifications in a daemon

2015-01-08 Thread Andrew Keller
On Jan 8, 2015, at 5:20 PM, Ken Thomases k...@codeweavers.com wrote: On Jan 8, 2015, at 4:03 PM, Andrew Keller and...@kellerfarm.com 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

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

Re: iOS 8 beta 4 messes with my TextView

2014-07-29 Thread Scott Andrew
You can also change the constraint. It sounds like you vs auto-layout. Sent from my iPhone On Jul 29, 2014, at 8:06 AM, Kyle Sluder k...@ksluder.com wrote: On Jul 29, 2014, at 1:58 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Master Detail app, works fine in 7.1.2. The Detail

NSStrings to CStrings and hex encoding...

2014-06-24 Thread Andrew Satori
Alright, I am stumped so I am asking for help (and it is annoying me because I am 100% certain that the answer will be stupid simple). I have a bit of code (old code I might add) that I am updating to ARC and other such modern features. Unfortunately, I have run into a little snag. The code

Re: NSStrings to CStrings and hex encoding...

2014-06-24 Thread Andrew Satori
TextEdit into plain text mode it still does the smart quotes. On Tue, Jun 24, 2014 at 9:15 PM, Andrew Satori d...@druware.com wrote: Alright, I am stumped so I am asking for help (and it is annoying me because I am 100% certain that the answer will be stupid simple). I have a bit of code

Re: Class name as NSString and problem with NSLog?

2014-03-06 Thread Scott Andrew
Even further you can get the current command by using NSStringFromSelector(_cmd); _cmd is the current selector. You can also use NSLog(@“%s”, _PRETTY_FUNCTION”) which will give you the class name and current selector. Do a google search also for NSLog replacements there are ones that do a lot

Re: Crash in -URLByResolvingBookmarkData::::: in sandboxed app

2014-02-27 Thread Andrew Madsen
if you’re intending to sell the app on the app store, the only true fix is probably to require 10.9. -Andrew Madsen On Feb 19, 2014, at 8:03 AM, Markus Spoettl ms_li...@shiftoption.com wrote: Hi, I keep getting a crash in my sandboxed app when it terminates. It is not 100% reproducible

Paged UIScrollview is acting strange in iOS7?

2014-02-17 Thread Scott Andrew
I have some old gallery code that uses UIScrollView in a paged mode. We are trying to port the code to iOS7 but when we are getting strange behavior. In iOS7 we are constantly getting scrollViewDidScroll with weird offset of negative or some large offset that has huge exponents. Is there a

Re: Paged UIScrollview is acting strange in iOS7?

2014-02-17 Thread Scott Andrew
, at 5:31 PM, Scott Andrew scottand...@roadrunner.com wrote: I have some old gallery code that uses UIScrollView in a paged mode. We are trying to port the code to iOS7 but when we are getting strange behavior. In iOS7 we are constantly getting scrollViewDidScroll with weird offset

Re: Direct NSSpeechSynthesizer output to buffer instead of file?

2014-02-06 Thread Andrew Thompson
If you post to the speech-dev list you'll likely get a more detailed reply as Apple's TTS engineers hang out there. I believe it is possible to hook up the synthesizer as an Audio Unit and capture the output that way. A more basic approach would be to use the venerable UNIX mkfifo function

NSTextTable with only certain text selectabled

2013-12-22 Thread Andrew Arrow
How do I make a drag select on a NSTextView with an NSAttributedString that contains a 2 column NSTextTable, only select the text in the 1st column? You can see a video of the mac app skype doing this here: https://dl.dropboxusercontent.com/u/2510380/skype.mov Thanks!

Re: URLByResolvingBookmarkData: crashes on 10.8

2013-11-11 Thread Andrew Madsen
On Nov 7, 2013, at 10:10 AM, Mike Abdullah mabdul...@karelia.com wrote: Ah, that’s a shame. Come to think of it, there’s a limit on how many security-scoped bookmarks you’re allowed to access at once. I wonder, does the problem seem to happen around a particular, fairly predictable,

Re: URLByResolvingBookmarkData: crashes on 10.8

2013-11-07 Thread Andrew Madsen
this. We’re always explicitly initializing our NSError parameter to nil (as we always do), but this is ARC code, so it should be set to nil anyway. For whatever it’s worth, I also had no problem reproducing this crash in a test app with ARC turned off. -Andrew Madsen

Re: Core Data with ODBC databases?

2013-10-17 Thread Andrew Satori
Actually, there is no reason CoreData can't be used in this manner, but there are things that will have to be dealt with outside of CoreData. How do you deal with two people making changes to the same record concurrently as an example ( this is not an issue exclusive to CoreData, but

Re: Core Data with ODBC databases?

2013-10-17 Thread Andrew Satori
On Oct 17, 2013, at 11:03 AM, Flavio Donadio fla...@donadio.com.br wrote: Dru, I am not sure if I understand you, but here it goes! Actually, there is no reason CoreData can't be used in this manner, but there are things that will have to be dealt with outside of CoreData. How do

Re: Core Data with ODBC databases?

2013-10-17 Thread Andrew Satori
On Oct 17, 2013, at 11:45 AM, Scott Ribe scott_r...@elevated-dev.com wrote: I think there’s a huge need for something like this in SMB. Agreed. Probably assuming always-on connectivity, since people usually have 3G or 4G. Do a decent job with managing bandwidth demands and controlling

Re: Core Data with ODBC databases?

2013-10-16 Thread Andrew Satori
I'd like to take this a step further. CoreData is a really nice tool, but CoreData really isn't the tool for using a multi-user RDMS since it skips over some of the frequently forgotten concepts like locking and data concurrency. Most of the time when people talk about CoreData and ODBC, they

Re: Core Data with ODBC databases?

2013-10-16 Thread Andrew Satori
. But at the end of the day, it is an abstraction layer, and adding another in the form and an ORM just isn't a great idea (IMO) that factored into the demise of Enterprise Objects. Dru On Oct 16, 2013, at 9:56 AM, Jens Alfke j...@mooseyard.com wrote: On Oct 16, 2013, at 6:14 AM, Andrew

Re: Core Data with ODBC databases?

2013-10-16 Thread Andrew Satori
Well... This is why I LOVE Objective-C and Cocoa for this work. What follows is a little complex, and honestly still in very raw form as I've had limited time to really finish all the work for something that is a line of business bit of work, but wasn't really built to be made generally

Re: Introducing ioscomponents.com

2013-08-28 Thread Andrew Satori
And do yourself a huge favor. Repeat to yourself every morning (and anytime you get frustrated), Developers are friends not food. I use that analogy intentionally, you are selling to the most critical market you will ever sell to. Not just other developers, which is bad enough, but Apple/iOS

Re: dev site down time is ridiculous

2013-07-24 Thread Andrew Satori
I hear Microsoft pays for apps in their app stores On Jul 24, 2013, at 1:26 PM, Hunter Hillegas li...@lastonepicked.com wrote: I don’t think you’re the only one. I’m upset too and not being able to provision stuff is really messing with my business… I’m trying to find constructive

FW: Andrew James

2013-06-17 Thread Andrew James
hello! http://www.airinfo.be/uf/hpnl/ffrs/fhejn.html Andrew James ___ 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

Re: Wanted: new owner for Mac apps

2013-05-07 Thread Scott Andrew
Hmmm. Wonder how long they'll last. Can you do me a bit of research. See if you can find reviews on these. The read me in the link has their names. See what people think of em. Sent from my iPhone On May 7, 2013, at 6:54 AM, Steven Degutis sbdegu...@gmail.com wrote: These ones:

Re: book for n00b

2013-02-03 Thread Andrew Coleman
If author is not an issue, I find Programming in Objective-C written by Stephen G. Kochan to be a fantastic book, covering tons of topics, and wouldn't be too tough for a novice to dive into. Hope this helps!! Thanks, Andrew Coleman On Jan 16, 2013, at 13:14, Scott Ribe scott_r...@elevated

Re: New busy cursor in the Finder

2012-12-20 Thread Andrew Thompson
I have TextWrangler installed but not BBedit. In any case this was definitely showing up in the Finder, though given it was the Open With menu item u guess it could be Launch Services showing it. On Dec 19, 2012, at 11:55 PM, John Pannell j...@positivespinmedia.com wrote: I noticed the

Size limit on .icns files containing 1024x1024 version in 10.5?

2012-10-07 Thread Andrew Madsen
drop support for 10.5. Thanks, Andrew Madsen ___ 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: Implementing Manual KVO For Bitfields Set in Atomic Operations

2012-08-22 Thread Scott A Andrew
Why not have an update flags function and a set of booleans that represent the flags. @interface someInterface { BOOL _isFoo; BOOL _isBar; } @property (nonatomic, readonly, assign) BOOL isFoo; @property (nonatomic, readonly, assign) BOOL isBar; -(void) updateFlags:(int)bits;

Re: Implementing Manual KVO For Bitfields Set in Atomic Operations

2012-08-21 Thread Scott A Andrew
Check out http://newwavedigitalmedia.com/blog/?p=132 I'll fix the image issues shortly. But basically it shows how to setup KVO for calculated values. So you could create KVO for each state using keyPathsForValuesAffectingyourKey then implement getters and setters. So each state could be

10.8 32bit ioctl

2012-08-11 Thread Scott A Andrew
I am needing to write an native extension for air and Flash builder that needs to be 32bit. However when i call ioctl in a 32 bit application it fails with -1. If i flip the app to 64 bit it works. I need a bit of help understanding why 32bit ioctl doesn't work. My questions, maybe someone

Re: Sizing NSTableView to data

2012-07-18 Thread Andrew Satori
Unfortunately, the sizeToFit method seems to create and infinite loop condition. trying to sort out WHY it happens. On Jul 18, 2012, at 1:13 AM, Kyle Sluder wrote: On Thu, Jun 28, 2012, at 04:42 PM, Maury Markowitz wrote: I am working on the ODBCkit's Query Tool to make it work across a

Macbook Pro retina display and simulator question.

2012-06-11 Thread Scott A Andrew
How does the new 15 retina display handle the iOS simulator. Does the simulator work in pixels or points. Is it going to be just like working a 15 today since text is in points and 12 pt is really 24? Or will it only take 1024x768 + bezel pixels? The one reason i have a 17 is that the

Re: @synchronized crashing with ARC

2012-05-31 Thread Scott A Andrew
My guess is that you are crashing because kMyVLFContext is not an objective C object. According to the Apple documentation (https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjectiveC/Chapters/ocThreading.html#//apple_ref/doc/uid/TP30001163-CH19-SW1): The @synchronized()

Sandbox Frustrations - A Good Idea handicapped by poor docs

2012-04-27 Thread Andrew Satori
Don't get me wrong, I think the sandbox is a good idea in the long run, but at the moment, it seems to be incomplete at best. For me, I am running into an issue where I need access to ipc-sysv-shm. Apparently this is restricted. There is no entitlement to allow it. There is no

Re: Opening a gap in NSTableView during drag and drop

2012-04-14 Thread Andrew Madsen
On Apr 14, 2012, at 1:31 AM, Quincey Morris wrote: On Apr 13, 2012, at 08:02 , Andrew Madsen wrote: I've got a simple, single-column, view-based NSTableView with items in it that can be dragged to reorder them. During drag and drop, I'd like to make it so that a gap for the item

Opening a gap in NSTableView during drag and drop

2012-04-13 Thread Andrew Madsen
this. 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/Update your Subscription

Question about block, ARC, self, and reference counting.

2012-04-12 Thread Scott Andrew
I have a question about retain cycles with ARC and blocks. I have the following code: __weak MyViewController* controller = self; [UIView animateWithDuration:.25 animations:^{ controller.alpha = 0; } completion:^(BOOL finsihed) { [controller

Re: Question about block, ARC, self, and reference counting.

2012-04-12 Thread Scott Andrew
Cool. Thank you that was sort of my thought. Then went and watched the WWDC video and went into a bit of a panic. Scott On Apr 12, 2012, at 11:18 AM, Ken Thomases wrote: On Apr 12, 2012, at 12:04 PM, Scott Andrew wrote: I have a question about retain cycles with ARC and blocks. I have

Re: iOS drawer-style interaction

2012-04-06 Thread Scott Andrew
What about using a UIPanGestureRecognizer? I didn't see anything in the docs that says a swipe get's continuous feedback. A UIPanGestureRecognizer gives continuous feedback during the drag. Scott On Apr 5, 2012, at 11:45 PM, Rick Mann wrote: I'm trying to implement a drawer of sorts.

Re: ARC not ready for primetime?

2012-03-25 Thread Scott Andrew
, 2012 at 4:17 AM, Scott Andrew scottand...@roadrunner.comwrote: I seem to have hit a few limitations with ARC. 1.) Subclasses of CALayer are not being fully released which causes my view controller to remain around. There is still some small bit of memory being left behind. Even if I do

ARC not ready for primetime?

2012-03-24 Thread Scott Andrew
I seem to have hit a few limitations with ARC. 1.) Subclasses of CALayer are not being fully released which causes my view controller to remain around. There is still some small bit of memory being left behind. Even if I do the following simple code: -(void) viewDidLoad { [super

GLKit's GLKBaseEffect leaking?

2012-03-23 Thread Scott Andrew
Has anyone been noticing that GLKit's base effect is leaking when calling prepareToDraw? There are repeated leaks in GLKShaderBlockNode. It seems that this may be new to 5.1 SDK. I could have sworn i did a check with 5.0. ___ Cocoa-dev mailing list

NSTableView tooltip with a view based table?

2012-02-01 Thread Andrew
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 ___ Cocoa-dev mailing list

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

2012-01-26 Thread Andrew
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 comments to the list. Contact

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 andrewrwr+cocoa...@gmail.comwrote: 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 open

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

2012-01-26 Thread Andrew
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 andrewrwr+cocoa...@gmail.com wrote: Well, I found this: http://code.google.com/p/cdto

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
PM, Scott Ribe scott_r...@elevated-dev.com 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 to try LS (Launch

Re: Is slowing down bindings updates possible?

2012-01-14 Thread Andrew
, Marcel Weiher marcel.wei...@gmail.com wrote: 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 could tell cocoa to only update the UI

Is slowing down bindings updates possible?

2012-01-12 Thread Andrew
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? Thank you, Andrew

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

Re: Text system glitch - lines across text view

2011-12-28 Thread Andrew Hughes
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 only. Thanks again. Happy holidays. Andrew Thanks for the reminders on turning background layout off and using the peformSelector hook

Text system glitch - lines across text view

2011-12-25 Thread Andrew Hughes
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 me figure this out. Andrew ___ Cocoa-dev mailing list

Re: Weird Core Data crash

2011-11-30 Thread Andrew Kinnie
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 is always called using

Weird Core Data crash

2011-11-29 Thread Andrew Kinnie
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. Anyone have any insight? Andrew

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

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 use the Xcode plugin and so am

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 the to-many relationship methods

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 entities. I used Xcode 4

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, and to

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

2011-08-16 Thread Andrew Kinnie
: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 relationship to another Entity MediaResource and I generated NSManagedObject subclasses for each

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

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

Re: Need help debugging this

2011-07-18 Thread Scott Andrew
As was pointed out below the CString doesn't support instance method string:. Crashing this in a debugger should give you call stack so you can trace who is doing the calling. You should also have a crash log that can be symbolized. But, if this is your code run it in the debugger and have it

Re: Application Design

2011-06-01 Thread Andrew Thompson
I'll caution you as written that singleton is not be thread safe. Often you don't care, because you only have one thread or because creating 2 webservice clients may not be a problem for you. On Jun 1, 2011, at 3:54 AM, Dan Hopwood d...@biasdevelopment.com wrote: Thanks Steve. For

Re: encoding of file names

2011-05-26 Thread Andrew Thompson
However, in practical terms, the indexable string elements are components, not codepoints. It seems to me the single hardest thing to come to grips with when newly approaching NSString is understanding that 'unichar's (and characters in the sense of [characterAtIndex:]) *aren't*

Re: Vertical alignment in NSTextView

2011-05-03 Thread Andrew Glushchenko
Hello, Rimas You can change the inset of the NSTextContainer associated with the NSTextView for this purpose. See setTextContainerInset method of NSTextView. 2011/5/3 Rimas M. apple.list...@gmail.com Hello, I continue my fight with cocoa text system :)) At the moment I am loosing.. Now I

Re: How to detect string encoding before reading a file in NSString?

2011-04-26 Thread Andrew Thompson
Another battle tested piece of code would be Mozilla's sniffer, if external libraries and it's license suit you. This document is out of date, bur explains the ideas. http://www.mozilla.org/projects/intl/detectorsrc.html On Apr 26, 2011, at 3:39 PM, John Pannell j...@positivespinmedia.com

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 -

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 the

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

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

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 do not post

Drawing images on top of each other

2011-02-03 Thread Andrew Coad
. Andrew Coad ___ 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

Initializing NSWindow with Carbon window

2011-01-30 Thread Andrew James
I have a legacy builder class that creates a Carbon window and I want to initialize an NSWindow with this WindowRef. I have a method on the builder GetProduct() that hands out the WindowRef. If I use commands like the following WindowRef w = builder.GetProduct(); ShowWindow( w );

Re: Initializing NSWindow with Carbon window

2011-01-30 Thread Andrew James
. Implementing a window delegate my also help. I've got options that I'm going to explore. Cheers, --aj From: Graham Cox graham@bigpond.com To: Andrew James andrew_a_ja...@yahoo.com Cc: list-cocoa-dev cocoa-dev@lists.apple.com Sent: Sun, January 30, 2011 3:04:38 AM

Re: Initializing NSWindow with Carbon window

2011-01-30 Thread Andrew James
graham@bigpond.com To: Andrew James andrew_a_ja...@yahoo.com Cc: list-cocoa-dev cocoa-dev@lists.apple.com Sent: Sun, January 30, 2011 8:18:23 PM Subject: Re: Initializing NSWindow with Carbon window On 31/01/2011, at 3:02 PM, Andrew James wrote: For once I actually should have cut-and-paste

RE: UIEvent timestamp clarification

2011-01-16 Thread Andrew Coad
Does anyone have a view on this? Andrew Coad From: andrewc...@hotmail.com To: cocoa-dev@lists.apple.com Date: Wed, 12 Jan 2011 18:36:56 -0500 Subject: UIEvent timestamp clarification Reading through the docs, the approximate flow from a user touching an interface component (e.g

RE: UIEvent timestamp clarification

2011-01-16 Thread Andrew Coad
Apologies, I didn't see Matt's reply despite searching several times. Problem solved, thanks. Andrew Coad Date: Sun, 16 Jan 2011 19:36:39 -0800 Subject: Re: UIEvent timestamp clarification From: kyle.slu...@gmail.com To: andrewc...@hotmail.com CC: cocoa-dev@lists.apple.com On Sun

UIEvent timestamp clarification

2011-01-12 Thread Andrew Coad
Reading through the docs, the approximate flow from a user touching an interface component (e.g. a button) to the touch event being processed by the application is: - User touches (e.g. a UIButton), a touch object is created and enqueued on the dispatch thread (main thread) - The touch

Re: Video player dead?

2010-11-27 Thread Andrew McLaughlin
Hmmm... Okay, so I unchecked the iTunes U and sync'd. Video player comes up and says there's nothing to watch. Now, rechecking and re syncing. Question is, how could it have gotten blown? Oh well... Andrew On Nov 26, 2010, at 11:56 PM, Andrew McLaughlin wrote: Hey list, I just updated

  1   2   3   4   5   6   7   >