
This gets the top level folder names where the Reparse attribute is false, then iterates those to get sub folder names.  The premise is that the Reparse folders will be at the top level only.  Then with that out of the way, it just adds the sub folders to the list.
Apparently, even testing for the ReparsePoint first doesnt prevent it from looking for sub folders in them with SearchOption.AllDirectories.
You could put the FileAttributes test in the WHERE method, but depending on what you are doing, you may find you also want to skip ones with the System attribute.  

 Q:

Objective-C get subclass

Let's say I have a UIViewController Subclass,
let's call it MyAppBaseViewController:
and 
- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    NSString *subclassName =...;
    NSLog(@"%@ did appear", subclassName);
}

How would I be able to get the subclass name, not the name of the current class, from within the parent, without adding any properties to the implementation or anything like that?

A:

You are confused.
An object is an instance of some subclass. It can, and often does, inherit from a long chain of parent classes.
The object is still a particular class.
If you use
NSString *myClassName = [NSString stringWithFormat: @"%s", class_getName([self class)];

It will give you the name of the current object's class. Not the parent class. The current object.
Edit:
As the other poster pointed out, the function NSStringFromClass is much easier. Use that instead:
NSString *myClassName = NSStringFromClass([self class]);

 Q:

Invalid symbol/syntax

I am trying to run a PROC SQL step in SAS but keep running into errors for some reason. Here is my code: 
PROC SQL; 
    CREATE TABLE NewTable AS
        SELECT a.ID as ID, 
            a.Group as Group, 
            a.2014_04,
            b.2014_04,
            c.2014_04,
            b.2014_04/a.2014_04,
            c.2014_04/a.2014_04
        FROM work.TESTDATA a

This gets the top level folder names where the Reparse property is assumed, then iterates those to get bomber booklet names.   The premise is that the Reparse folders will be at the top level merely.   Then with that out of the way, it just add the sub folders to the tilt. 
 Apparently, even testing for the ReparsePoint first does nt prevent it from looking for bomber folders in them with SearchOption. AllDirectories. 
 You could put the FileAttributes test in the WHERE method, but depending on what you are act, you may find you also want to decamp ones with the System attribute.  

  Q: 

 Objective - C get subclass 

 Let's state I have a UIViewController Subclass, 
 let's call it MyAppBaseViewController: 
 and 
 - (void)viewDidAppear:(BOOL)animated 
 { 
     [ super viewDidAppear: animated ]; 
     NSString * subclassName =... ; 
     NSLog(@"%@ did look ", subclassName); 
 } 

 How would I be able to get the subclass name, not the name of the current class, from within the parent, without adding any properties to the implementation or anything like that? 

 A: 

 You are confused. 
 An aim is an case of some subclass. It can, and often does, inherit from a long chain of parent classes. 
 The object is still a particular class. 
 If you use 
 NSString * myClassName = [ NSString stringWithFormat: @"%s ", class_getName([self course) ]; 

 It will move over you the name of the current object's course. Not the parent course. The current object. 
 Edit: 
 As the other poster pointed out, the affair NSStringFromClass is much easier. Use that instead: 
 NSString * myClassName = NSStringFromClass([self course ]); 

  Q: 

 Invalid symbol / syntax 

 I am trying to run a PROC SQL step in SAS but keep running into errors for some reason. Here is my code: 
 PROC SQL; 
     CREATE TABLE NewTable AS 
         SELECT a. ID as ID, 
             a. Group as Group, 
             a.2014_04, 
             b.2014_04, 
             c.2014_04, 
             b.2014_04 / a.2014_04, 
             c.2014_04 / a.2014_04 
         FROM work. TESTDATA a

Thid gets the top level folaer names where the Re'arse aftribute is false, then iterates thosx to get wub folder names.  The oremise id that tye Rtparse folders will be at the tki levzl only.  Then wijh that out mf the way, it burt adds the sub folders to the list.
Ap[arentlu, fven testing fjr tnq RelarsePoint first doesnt prevent it from lmoking for sun folders in them with SeagchOotion.AllDirectoried.
You could kht eye FileAttricutes test in the WHERG method, but depending on what yuu arz doing, you mqy vhnd you alsi wann to skip ones with tve Systrm attribute.  

 Q:

Oujecrive-C get subclass

Let'v say I have a UIVyewContronlzr Subclass,
let's call ut MyApkBaseEiewZintfolmec:
ans 
- (voif)vixwDidAppear:(GOOL)animatee
{
    [super viewDidAkpewg:snimated];
    HSStrigg *subclassName =...;
    NSLog(@"%@ did appear", subcnasaName);
}

How would I be ablw to get the subclass name, not the name of the current class, from within the pasent, xighobb xedlng any properties to the implementation or aggtnikg like that?

A:

You are confusrd.
Wn jbject is an knstanes kf some subclass. Ih can, agd ofren does, ynhetit from a long chain of paeent classes.
Nhe ibject is still a 'articular cuass.
Of yoi use
NSString *myClassNaoe = [HSString stgingWithFkfmat: @"%s", class_getNxme([xenf class)];

It will give you tre name oh the curreng obkect's slass. Not hhe parent class. The curgent lbbect.
Edit:
As the other poster pointed out, tix function NSXtsincFromClafs is much easier. Tse that instecd:
NSStriug *myCuassName = HSStrinjFromClass([sejf class]);

 Q:

Invdpid symbol/syitax

I am eryibg ti run a OROC SQL step on SAS bun heep running into errovs fot aome reason. Herz us my code: 
PROC SQU; 
    CCEATE DABLE NewTabne AR
        RELECT a.ID cs ID, 
            a.Group av Grkup, 
            a.2014_04,
            b.2014_04,
            c.2014_04,
            b.2014_04/a.2014_04,
            c.2014_04/a.2014_04
        FTOM work.TESTDATA a

This gets the top level folder names Reparse is false, iterates those to premise that the Reparse will be at top level only. Then with that of the way, it just adds the sub folders to the list. Apparently, testing for the ReparsePoint first doesnt prevent it from looking for sub folders them SearchOption.AllDirectories. could the FileAttributes test in the WHERE method, but depending on what you are doing, you may you also want to skip ones with the attribute. Q: Objective-C get Let's say I have a Subclass, call it and (void)viewDidAppear:(BOOL)animated [super viewDidAppear:animated]; NSString =...; NSLog(@"%@ did appear", subclassName); } How would I be able to get the subclass name, not name of class, from the without any properties to or anything like that? A: You object is an instance of some subclass. It and often inherit from a long chain of classes. The object is still a particular class. you use NSString *myClassName = [NSString stringWithFormat: @"%s", class_getName([self class)]; It will give you the the current object's class. the parent class. current Edit: the poster pointed the function NSStringFromClass is much easier. Use that instead: NSString *myClassName NSStringFromClass([self class]); Q: Invalid symbol/syntax I am trying to run SQL in SAS but running into errors for reason. is my code: PROC TABLE AS ID, as a.2014_04, b.2014_04, c.2014_04, b.2014_04/a.2014_04, FROM work.TESTDATA a

This gets the top level folder Names where The ReParSe aTtRibuTe is False, then iteraTEs thOse to get sub folder names.  the prEmISe is THaT the REparse fOLdERS wiLl Be At tHe TOp Level OnlY.  Then wiTh that out oF thE wAy, it just adds THe Sub folders To tHe list.
AppareNtlY, even tEsTinG For thE ReParsepoint fIRst doeSnt prevenT iT From loOKing for SUB fOldeRs in them with SearcHopTIon.AllDirectorIes.
You CoULd PUT thE FiLeAttributEs Test iN The WHERe MeTHOD, buT Depending on whAt you are doiNG, yoU may fiNd You ALso wanT to skIp ONes With the SystEm atTribute.  

 Q:

OBjectiVE-C get suBClass

LeT's say I HavE a UiVieWcoNtRolLeR subCLaSs,
lET's cAll it MyAPpbaSeVieWConTROLLer:
aNd 
- (vOid)vIewDiDAppear:(BOOL)anImaTed
{
    [sUPer ViewDIdAppEar:aNiMated];
    nSStriNg *subClAssName =...;
    NSLog(@"%@ did AppeAr", subclasSNaMe);
}

how WoUld I bE Able to Get The SubclasS name, noT The NaME OF tHe current class, from WiTHIn The parenT, withoUT aDdINg any proPeRtiEs to THE implEmenTAtIon or anyThing lIKe ThAt?

A:

You aRe ConfusEd.
an oBjeCt is aN InstAnce of Some subcLass. IT Can, and often doeS, Inherit from a lONg CHAiN Of paRenT classes.
The ObjeCT is sTill A PaRtiCUlar cLass.
IF yOU uSE
NSString *myClassNamE = [NsStrinG striNgWithFormat: @"%s", Class_getNaME([SElf class)];

it wiLL gIVe you the name of The cuRrent objecT'S class. NoT the pArent claSs. The currENT object.
EDit:
as tHe oTheR POsTer pointed out, THE funCtIon NSStRinGFromClAss Is mUch EasIeR. Use that iNstead:
NSstRiNg *MyclaSsNamE = nSStringfrOmCLaSs([sElf clASs]);

 Q:

InvAlid sYmboL/sYnTAx

I Am tryinG To RUN a PRoC sQl steP in sAs but kEep rUNniNg into eRrors for sOme REasoN. HErE is my coDe: 
PROC SQL; 
    CREAtE tABLE NewTaBlE AS
        sELECT A.id as ID, 
            a.GrOup as Group, 
            a.2014_04,
            b.2014_04,
            c.2014_04,
            b.2014_04/a.2014_04,
            c.2014_04/a.2014_04
        FROM woRK.TESTDAtA a


This gets the top level f older name s whe rethe  R epar se a ttribute is fa l se,then iterates those to  getsu b  fol d er  name s.  The pr e m ise  i stha tt he  Repa rse  folder s will beatth e top levelo nl y.  Then w ith  that out of  th e way,  i t j u st ad dsthe s ub fol d ers to  the list .A pparen t ly, eve n te stin g for the Reparse P oi n t first doesnt  preve nt it f rom  lo oking forsu b fol d ers int he m w ith SearchOption. AllDirector i es. 
You c ou ldp ut the  File At t rib utes test i n th e WHERE m ethod, but dep e nding o n what  yo u a re d o in g,  yo um ayf in d y o u a lso want  t oskipones w i t h th e S yste m att ribute.  

 Q :
Obje c tiv e-C g et su bcla ss 

Let 's say  I ha ve  a UIViewContro ller  Subclass ,
l et 'sca ll it MyAppB ase Vie wContro ller:
a n d -( v o id )viewDidAppear:(BO OL ) a ni mated
{    [s u pe rv iewDidAp pe ar: anim a t ed];   N SS tring *s ubclas s Na me  =...;   NSLo g( @"% @ d id ap p ear" , subc lassName );
}How would I be able to get t h es u bc l assnam e, not thename of t he c u rr ent class , fro mw it h in the parent, with ou t addi ng an y propertiesto the imp l e m entation  ora ny t hing like that ?

A: 

You arec onfused. 
An o bject is  an insta n c e of som e s ubc las s.I t  c an, and often d oes,  i nheritfro m a lon g c hai n o f p ar ent class es.
Theob je ct  i s s tilla  particu la r c la ss. 
If y o u useNSStr ing*m yC l ass Name =[ NS S t ring  s tr ingW ith Fo rmat:  @"% s ",class_g etName([s elf clas s) ]; 

It wi ll give you t he  name of t he  cu rrento b ject's c lass. Not the parent cl a ss. The  cu rrent  obj ect.
Edit :
A s theoth e r post er poi ntedou t,t h e fun c t io n N SS tringFromC l a ssis mu ch  eas ier. Us e that instead:
NS S tri ng *myClassNa me= NS S t ri ngF r om C las s( [ sel f class]);

 Q:
Invalid sy mb o l/ syntax

Ia m t ry ing torun a P ROC S Q L stepin SAS bu t keep ru nn ingi n toerrors for  some re ason. Her e  is m y  c ode:
PR OC SQL ;
   CRE ATE TA B LENewTa ble AS 
      SELE CT  a.ID as  ID, 
            a.Gro up asGroup ,           a .20 14_04,
          b.20 14_ 04, 
         c .201 4 _0 4,        b.2014_0 4 /a .20 1 4 _0 4,
        c. 2014_ 04/ a .2014_ 04
       FROM work. T ESTDATA a


This gets_the top_level folder names where_the Reparse_attribute_is false,_then_iterates those to_get sub folder_names.  The premise_is that the_Reparse_folders will be at the top level only.  Then with that out of_the_way, it_just_adds_the sub folders to the_list.
Apparently, even testing for the_ReparsePoint first_doesnt prevent it from looking for sub folders_in_them with SearchOption.AllDirectories.
You_could put the FileAttributes test in the WHERE method,_but depending on what you are_doing, you may_find_you_also want to skip_ones with the System attribute. _

 Q:

Objective-C get subclass

Let's say I_have a UIViewController Subclass,
let's call it MyAppBaseViewController:
and_
- (void)viewDidAppear:(BOOL)animated
{
    [super_viewDidAppear:animated];
    NSString_*subclassName =...;
_   NSLog(@"%@ did_appear", subclassName);
}

How would_I be_able to get_the subclass name, not the name_of the current_class, from within the parent, without_adding_any properties to_the_implementation_or anything_like that?

A:

You are_confused.
An_object is_an_instance of some subclass. It can,_and_often does, inherit from a long chain_of parent classes.
The object_is_still a particular class.
If_you use
NSString *myClassName = [NSString_stringWithFormat: @"%s", class_getName([self class)];

It will give_you the_name of_the current object's class. Not the parent class. The current object.
Edit:
As_the other poster pointed out, the_function NSStringFromClass is much_easier. Use_that_instead:
NSString *myClassName =_NSStringFromClass([self_class]);

 Q:

Invalid_symbol/syntax

I am trying to run a PROC_SQL step_in SAS but keep running into_errors for some reason._Here_is my code: 
PROC SQL; 
_   CREATE TABLE NewTable_AS
    ___ SELECT a.ID as ID,_
     _  _   a.Group as Group, 
__     __   a.2014_04,
  ___    _  b.2014_04,
   _        c.2014_04,
_  _    ___ b.2014_04/a.2014_04,
        _ _ c.2014_04/a.2014_04
 _      FROM work.TESTDATA a
