New topic: 

subclass folderitem for sandboxing

<http://forums.realsoftware.com/viewtopic.php?t=46948>

         Page 1 of 1
   [ 5 posts ]                 Previous topic | Next topic          Author  
Message        lajdesign          Post subject: subclass folderitem for 
sandboxingPosted: Thu Feb 14, 2013 5:56 pm                         
Joined: Tue Aug 07, 2012 9:46 pm
Posts: 16                What would it take to subclass folder item so that it 
better reports out. With sandboxing my biggest headache is with folderitems and 
if something goes wrong it only reports to the console, so most users aren't 
any help to find out what happened. Any ideas or other routes?

Luke   
                             Top                DaveS          Post subject: 
Re: subclass folderitem for sandboxingPosted: Thu Feb 14, 2013 7:04 pm          
                       
Joined: Sun Aug 05, 2007 10:46 am
Posts: 4553
Location: San Diego, CA                I don't believe folderitem is a 
subclassable object....

But I'm confused as to what you mean by "it only reports to the console"

You have full control over examining folderitem results and reporting them as 
appropriate.

Can you provide an example of what your are doing where this is not the 
case????      
_________________
Dave Sisemore
MacPro, OSX Lion 10.7.4 RB2012r1
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top                lajdesign          Post 
subject: Re: subclass folderitem for sandboxingPosted: Thu Feb 14, 2013 9:15 pm 
                        
Joined: Tue Aug 07, 2012 9:46 pm
Posts: 16                It is more just being lazy and not wanting to add a 
bunch more checks. It is a lot of code that has worked for a long time, just 
the sandboxing throwing kinks.

What I want to do is have folderitem report errors and such in more detail to a 
log file. So to be able to globally report folderitem errors, rather than have 
to add code to all folderitems.

It doesn't look to subclass like other items. Any other ideas?   
                             Top                DaveS          Post subject: 
Re: subclass folderitem for sandboxingPosted: Thu Feb 14, 2013 9:22 pm          
                       
Joined: Sun Aug 05, 2007 10:46 am
Posts: 4553
Location: San Diego, CA                What kind of errors are you talking?

It is NIL (bad path), or NOT exists..... I can't think of an actual ERROR that 
a folderitem ever "raises"

Why not just create a global method and pass the folderitem in, and let that 
method analyze it?


check_my_folderitem(f) 

or MAYBE (and I have not tried this)... you can look into the EXTENDS feature

SUB check_it(extends folderitem)
  ....stuff..
END SUB


f.check_it      
_________________
Dave Sisemore
MacPro, OSX Lion 10.7.4 RB2012r1
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top                lajdesign          Post 
subject: Re: subclass folderitem for sandboxingPosted: Thu Feb 14, 2013 10:14 
pm                         
Joined: Tue Aug 07, 2012 9:46 pm
Posts: 16                I had briefly looked at extends. Most of the time I 
think it is permission denied, which throws strange errors.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 5 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to